&gt; You could argue that the API is bad for allowing HTML strings as arguments<p>That is <i>exactly</i> what I’m arguing, yes.<p>&gt; but it&#x27;s not really surprising that a function does what it is documented to do<p>It doesn’t have to be surprising or undocumented to be stupid.