FieldFrame Matrix and the EE Typography plugin
Yesterday I was working with the amazing FieldFrame plugin for ExpressionEngine. I was putting together a Matrix fieldtype, made up of 4 columns: status, title, description, and thumbnail. After everything was all hooked up, I gave it a test run and then realised that the description field was not being parsed and formatted by the EE engine. In particular, EE was not automatically wrapping paragraph tags around my multiple lines of text.
In Wordpress, there’s a quick function wpautop() that performs that particular formatting hurdle. Or you can envoke the filter for “the_content”, like so:
$my_textarea = apply_filters('the_content', $my_textarea);
echo $my_textarea;
But for EE? After a quick Google I found the answer: a clever plugin EE Typography, which not only formats the text, but exposes all of the formatting options available within the admin panel (XHTML, Auto br, etc). Use it simply like so:
{exp:ee_typography}
Text you want processed
{/exp:ee_typography}
The community saves the day once again.