> is always unescaped in output HTML

Issue #560 new
Nikolai Vladimirov created an issue

Given the following input HTML

<strong> about &gt; contact </strong>
<strong> about &lt; contact </strong>

The .out file from rainbow's test tool is:

<strong> about > contact </strong>
<strong> about &lt; contact </strong>

This happens both with the default filter config and with a custom one specifying:

escapeCharacters: "><"

It's possibly a duplicate of: #552

Comments (2)

  1. ysavourel

    I think the '>' character is an exception that is treated differently in the XML/HTML encoder. The escapeCharacters has no effect on it.

    There is another option in the encoder to escape the '>' to '>', and it seems to be currently hard-coded to false. @jhargrave Maybe we can add an option to the configuration and use that instead of the default?

  2. Log in to comment