nunomaduro/termwind

A render method with only string text should not be converted to a `<p>` tag.

xiCO2k opened this issue · 0 comments

After the PR #89, the render('text') is converted to a <p> tag by the DOMDocument class.

Posible solution:

Add RegExp to detect is there is no HTML on the string, and ignore the call of loadHtml.