Notice: This project is marked as stale. This means that it may work fine, but it
has no file releases or repository commits in over a year. Use your own
discretion when using this project.
A Smarty Modifier Plugin that will check to see if the string is wrapped in <p> tags. If not, it adds the tags. It will also replace br tags with </p><p> and strip white space and multiple line returns. Example: {$string|proot} will wrap the string in <p> tags if they do not exist. You can specify the root element with the optional parameter. Example: {$string|proot:"div"} will use div instead of p tags. Could be used to display php code for example: Example: {$string|proot:"pre"} will wrap in <pre> tags.