Htmltrim: Difference between revisions From Online Manual

Jump to: navigation, search
m (Show  )
No edit summary
Line 11: Line 11:


<noinclude>
<noinclude>
[[Category:General Utility Functions]]
[[Category:General Utility Functions]]</noinclude>
[[Category:2.0]]
[[Category:Customizing SMF]]
[[Category:Developing SMF]]</noinclude>

Revision as of 21:54, 8 October 2012

Usage:

$smcFunc['htmltrim'] (string)


Description: Works similar to the php function trim(), additionally also HTML spaces (e.g. &nbsp;) are trimmed.

Parameters:

  • string the string that will be trimmed.

Return: the trimmed string.

Example:

$result = $smcFunc['htmltrim']('&nbsp;This is the string I want to trim ');



Advertisement: