Replace string variable and Format data. Variable always define inside curly bracket like {baseurl}
App::Utility()->codeformated(data)
Data is string value passed to be formatted. See bellow variables.
Variable |
Replace with |
---|---|
{lt} |
< |
{gt} |
> |
{pre} |
<pre> |
{/pre} |
</pre> |
{break} |
<br /> |
{site_title} |
Site title saved in configuration |
{baseurl} |
Webiste Base URL. |
{skinurl} |
Website Template Url |
{filemanagerpath} |
File Manager Url |
{link} |
<a href=" |
{innertext} |
"> |
{/innertext}{/link} |
</a> |
{pera} |
<p> |
{/pera} |
</p> |
{bold} |
<strong> |
{/bold} |
</strong> |
{underline} |
<u> |
{/underline} |
</u> |
{italic} |
<i> |
{/italic} |
</i> |
{img} |
<img src=" |
{/img} |
" /> |
See bellow example:
echo App::Utility()->codeformated('{img}{baseurl}/uploads/filemanager/logo.jpg{/img}');