Merge pull request #3514 from emanuelschuetze/assignmentHTMLFix
Remove HTML tags from description in assignment PDF.
This commit is contained in:
commit
b3a71a741f
@ -47,7 +47,7 @@ angular.module('OpenSlidesApp.assignments.pdf', ['OpenSlidesApp.core.pdf'])
|
||||
style: 'textItem'
|
||||
},
|
||||
{
|
||||
text: assignment.description,
|
||||
text: $(assignment.description).text(),
|
||||
style: 'textItem',
|
||||
margin: [10, 0, 0, 0]
|
||||
}
|
||||
|
@ -75,12 +75,12 @@
|
||||
</div>
|
||||
|
||||
<div class="details">
|
||||
<div ng-if="assignment.description">
|
||||
<div ng-if="assignment.description" class="clearfix">
|
||||
<h3 translate>Description</h3>
|
||||
<div ng-bind-html="assignment.description | trusted"></div>
|
||||
</div>
|
||||
|
||||
<div ng-if="assignment.phase !== 2" class="clearfix">
|
||||
<div ng-if="assignment.phase !== 2">
|
||||
<h3 translate>Candidates</h3>
|
||||
<div ui-tree="treeOptions" ng-if="assignment.assignment_related_users.length"
|
||||
data-empty-placeholder-enabled="false">
|
||||
|
@ -11,11 +11,11 @@
|
||||
<!-- Description -->
|
||||
<div ng-if="!showResult && assignment.description !== ''"
|
||||
ng-bind-html="assignment.description | trusted"
|
||||
class="zoomcontent">
|
||||
class="zoomcontent clearfix">
|
||||
</div>
|
||||
|
||||
<!-- Candidates -->
|
||||
<div class="zoomcontent" ng-if="!showResult" class="clearfix">
|
||||
<div class="zoomcontent" ng-if="!showResult">
|
||||
<h3 translate>Candidates</h3>
|
||||
<ul>
|
||||
<li ng-repeat="related_user in assignment.assignment_related_users | orderBy:'weight'">
|
||||
|
Loading…
Reference in New Issue
Block a user