Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML entities in sources are not converted before display #76

Open
macik opened this issue Mar 28, 2016 · 0 comments
Open

HTML entities in sources are not converted before display #76

macik opened this issue Mar 28, 2016 · 0 comments

Comments

@macik
Copy link

macik commented Mar 28, 2016

<a name="line4299"></a>         $left = $length - $total_length;
<a name="line4300"></a>         if ($plain_mode || ($plain_tag &amp;&amp; $tag))
<a name="line4301"></a>         {
<a name="line4302"></a>             // treats text as plain in <pre>, <plaintext> tags
&lt;a name="line4303"&gt;&lt;/a&gt;             $content = $plain_mode ? $line_matchings[0] : $line_matchings[2];
&lt;a name="line4304"&gt;&lt;/a&gt;             if (mb_strlen($content) &lt;= $left)
&lt;a name="line4305"&gt;&lt;/a&gt;             {

in line line4302: <pre> tags in comments are not converted and thus we get mess with further code.

@macik macik changed the title HTML entities not converted inside comments block? HTML entities in sources are not converted before display Jun 29, 2016
macik added a commit to macik/phpdoctor that referenced this issue Jun 29, 2016
Converts HTML entities in sources to safe display
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant