Browse Source

Bug 27694: use HTML filtering on News Tool textarea

To test:
1. Add some HTML enties to your codemirror in the News Tool. Example: <option value="(itype:DVD and loc:*NEW) AND NOT index-term-genre:&quot;television&quot;">Movies</option>
2. Save and re-eneter the tool, the HTML entites have been converted
3. Apply patch
4. Try again, HTML entities should not be converted

Signed-off-by: Ron Houk <rhouk@ottumwapubliclibrary.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Lucas Gass 2 years ago
committed by Jonathan Druart
parent
commit
9d2092e36f
  1. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt

2
koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt

@ -103,7 +103,7 @@ Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
[% END %]
</li>
<li><label for="content">News: </label>
<textarea name="content" id="content" cols="75" rows="10">[% new_detail.content | $raw %]</textarea>
<textarea name="content" id="content" cols="75" rows="10">[% new_detail.content | html %]</textarea>
</li>
</ol>
</fieldset>

Loading…
Cancel
Save