<div class="portlet-content">
<p>This site is under construction. If you have any thoughts or problems, let me know.</p>
</div>
The problem is the <p></p> tags. I would like to output this information in a <li></li> set of tags.
Where is the <p> set coming from? Is it from the beginWidget()?
How do I change to <li>? Would I use beginContent()?
The docs are indicate it can be used in various ways, but is lacking in how, but I THINK I saw the possiblility of beginContent() or something else. Thank you.
Yes. Markdown always wraps your paragraphs with <p>. If you don’t want any extra markup, why just not to use purifier without markdown or even just use CHtml::encode.
Does purififier evaluate the Markdown code? CHtml::encode() just does a htmlspecialentities as far as I know.
Also how would I use purifier? I’ve only seen it as an array item. a short code snippet to point me in the write direction would be greatly appreciated.
No, purifier does not evaluate markdown and yes, encode escapes all HTML and it’s enough to just output “This site is under construction. If you have any thoughts or problems, let me know.” in a safe way. If there is HTML, you can use purifier like this:
$p = new CHtmlPurifier();
$text = $p->purify($text);
You don’t have to clean it. Markdown translates to valid HTML and you can paste this HTML into li. <p> is really necessary since, for example, you can have two paragraphs.