Remove HTML tags from description in assigment PDF.

Fix usage of clearfix in assignment templates.
This commit is contained in:
Emanuel Schütze 2017-12-15 08:27:16 +01:00
parent 912876c895
commit aad74bdbb4
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'">