Files
openide/java/java-tests/testData/codeInsight/javadocIG/literalInsideCode.html
Nikita Eshkeev f6b1914a56 [javadoc] IDEA-284917 Javadoc: code inside {@code} get escaped
The javadoc generation highlights the code in code tags too depending on some flags, which also performs escaping of the special symbols. Hence, the initial escaping in JavaDocInfoGenerator#generateLiteralValue should be performed only if the highlighting will not be applied.

GitOrigin-RevId: fedc6db2e211bfb90709e91ed0ce10994977e0fa
2021-12-18 07:43:37 +00:00

5 lines
481 B
HTML

<html><head><base href="placeholder"></head><body><div class='definition'><pre><span style="color:#000080;font-weight:bold;">class</span> <span style="color:#000000;">Foo</span></pre></div><div class='content'>
<pre>
<code style='font-size:100%;'> <span style=""><span style="">{@literal&#32;@Inject}<br> </span><span style="color:#000080;font-weight:bold;">public&#32;class&#32;</span><span style="">Foo</span></span></code>
</pre>
</div><table class='sections'><p></table>