You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text() function makes use of the INLINE_TAGS set to determine the handling of newlines, however it looks like this list was not updated in quite a while. The last comprehensive list on MDN, before the page was rewritten in April 2023, includes the following, with the ones missing from the INLINE_TAGS set marked with a cross:
<a>
<abbr>
<acronym>
<audio> ❌
<b>
<bdi> ❌
<bdo>
<big>
<br>
<button>
<canvas> ❌
<cite>
<code>
<data> ❌
<datalist> ❌
<del> ❌
<dfn>
<em>
<embed> ❌
<i>
<iframe> ❌
<img>
<input>
<ins> ❌
<kbd>
<label>
<map>
<mark> ❌
<meter> ❌
<noscript> ❌
<object>
<output> ❌
<picture> ❌
<progress> ❌
<q>
<ruby> ❌
<s> ❌
<samp>
<script>
<select>
<slot> ❌
<small>
<span>
<strong>
<sub>
<sup>
<svg> ❌
<template> ❌
<textarea>
<time>
<u> ❌
<tt>
<var>
<video> ❌
<wbr> ❌
The text was updated successfully, but these errors were encountered:
The
text()
function makes use of theINLINE_TAGS
set to determine the handling of newlines, however it looks like this list was not updated in quite a while. The last comprehensive list on MDN, before the page was rewritten in April 2023, includes the following, with the ones missing from theINLINE_TAGS
set marked with a cross:The text was updated successfully, but these errors were encountered: