Module adds HTML markup inside a PHP string
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #2926278. --> Reported by: [avpaderno](https://www.drupal.org/user/55077) >>> <p>See <a href="https://api.drupal.org/api/drupal/core%21modules%21user%21src%21SharedTempStoreFactory.php/class/SharedTempStoreFactory/8.5.x">https://api.drupal.org/api/drupal/core%21modules%21user%21src%21SharedTempStoreFactory.php/class/SharedTempStoreFactory/8.5.x</a>, for example. One of the lines at the end of the method is rendered as follows.</p> <div class="codeblock"> <pre><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br>&nbsp;&nbsp; $storage </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">storageFactory</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #DD0000">"user.shared_tempstore.{&lt;span class="</span><span style="color: #0000BB">php</span><span style="color: #007700">-</span><span style="color: #0000BB">variable</span><span style="color: #DD0000">"&gt;</span><span style="color: #0000BB">$collection</span><span style="color: #DD0000">&lt;/span&gt;}"</span><span style="color: #007700">);<br></span><span style="color: #0000BB">?&gt;</span></span></pre></div> <p>The <code>&lt;span&gt;</code> tag is not present in the source code (<a href="http://cgit.drupalcode.org/drupal/tree/core/modules/user/src/SharedTempStoreFactory.php">http://cgit.drupalcode.org/drupal/tree/core/modules/user/src/SharedTempStoreFactory.php</a>).</p> <div class="codeblock"> <pre><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br>&nbsp;&nbsp;&nbsp; $storage </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">storageFactory</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #DD0000">"user.shared_tempstore.</span><span style="color: #0000BB">$collection</span><span style="color: #DD0000">"</span><span style="color: #007700">);<br></span><span style="color: #0000BB">?&gt;</span></span></pre></div>
issue