Hello Guys, Need help with HTML tags …
Let say i have string that i get from database like this :
[code=html]<p><img height="150" alt="" hspace="5" width="200" align="left" vspace="5" src="http://127.0.0.1/Project/FPBank/admin/fckeditor/image/water%20lilies.jpg" />Copyright &copy; 1997 – 2005 by the PHP Documentation Group. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later. A copy of the <a title="Appendix&nbsp;R.&nbsp;Open Publication License" href="mk:@MSITStore:G:GUDANG%20SOFTWAREWEB%20DESIGN%20&amp;%20SERVERServer%20ScriptingPHPNew%20PHP%20Manualphp_manual_en.chm::/opl.license.html">Open Publication License</a> is distributed with this manual, the latest version is presently available at <a class="ulink" target="_blank" href="http://www.opencontent.org/openpub/">&raquo; http://www.opencontent.org/openpub/</a>.</p>
<p>Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder.</p>
<p>Distribution of the work or derivative of the work in any standard (paper) book form is prohibited unless prior permission is obtained from the copyright holder.</p>
<p>In case you are interested in redistribution or republishing of this document in whole or in part, either modified or unmodified, and you have questions, please contact the copyright holders at <a class="ulink" target="_blank" href="mailto:[email protected]">&raquo; [email protected]</a>. Note that this address is mapped to a publicly archived mailing list.</p>
<p>The <a href="mk:@MSITStore:G:GUDANG%20SOFTWAREWEB%20DESIGN%20&amp;%20SERVERServer%20ScriptingPHPNew%20PHP%20Manualphp_manual_en.chm::/missing-stuff.html#zend">zend</a> section of the documentation is based on an initial contribution by Zend Technologies.</p>
Could anyone tell me how to remove all the HTML tags, so i only have string without anykind of html tags.
Or someone already make a function contain regular expression to recognize html tags and remove all of it, include the string between the tags like <p>, </p>, <img src=”bla-bla-bla”> …
Please Help Me
Thank’s alot for your answer …