Merge pull request #3514 from emanuelschuetze/assignmentHTMLFix

Remove HTML tags from description in assignment PDF.
This commit is contained in:
Emanuel Schütze 2017-12-15 09:18:54 +01:00 committed by GitHub
commit b3a71a741f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -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]
}

View File

@ -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">

View File

@ -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'">