in reply to Re: Substitution inside tags, as 1 line
in thread Substitution inside tags, as 1 line

Nice, but why do you use <p/>? That's equivalent to <p></p>, thus inserting an empty paragraph before each line, which sounds rather nonsensical to me.

If you try to be correct about p nesting, then write $_ = "<p>$_</p>" instead.

Or use <br /> instead.