edit: a more accurate title is "Profanity filter only accounts for whitespace characters in HTML source code"
definitely not the intended behavior, since it accounts for whitespace characters at all. to demonstrate (a real example that just almost made me lose my mind lol), this
<p>... aren't</p>
<p>it's ...</p>
passes the filter and this
<p>... aren't</p><p>it's ...</p>
doesn't