ZenphotoCMS Forum
how to clean a string ? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: how to clean a string ? (/thread-9956.html)



how to clean a string ? - vincent3569 - 2012-05-10

hi

I have an issue with zbboostrap.
I used a tooltip script to display the description of albums.
But, if the description contains html code (especially tags ), it doesn't work.

Is there a function that allows to clean the string and remove some html tags ?




how to clean a string ? - acrylian - 2012-05-10

You mean this?: http://php.net/manual/en/function.strip-tags.php




how to clean a string ? - sbillard - 2012-05-10

There is also getBareXXX() functions




how to clean a string ? - vincent3569 - 2012-05-11

hi
thanks sbillard, you was on the right way and I solved my issue with getBareAlbumDesc()