fer0an Posted September 7, 2011 Share Posted September 7, 2011 hello I've some text and I want remove html code from it using php. anyone can help me? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> 0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>1<br>item<br /> <b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/getevery/public_html/add/add.php</b> on line <b>118</b><br /> <hr> --> <div id="descriptionContainer" style="border: 1px dotted gray; padding: 10px; text-align: left;"> <table cellspacing="0" cellpadding="0" border="0" summary="description table" id="descriptionTbl" width="100%"> <tr> <td align="left" valign="top" class="tblHeader1"> <strong>description:</strong> ( <a rel="nofollow" href="http://library.nu/>?</a> ) </td> <td align="right" valign="top" class="tblHeader1" style="font-weight: normal; color:black;"> </td> </tr> <tr> <td align=left valign="top" colspan="2"> <br /> </td> </tr> <tr> <td align=left valign="top" colspan="2"> <p> We inhabit a textually super-saturated and increasingly literate world. This volume encourages readers to consider the diverse methodologies used by historians of reading globally, and indicates how future research might take up the challenge of recording and interpreting the practices of readers in an increasingly digitized society.</p> </td> </tr> </table> </div> <!-- The History of Reading, Volume 3: Methods, Strategies, Tactics Final existitem<br /> <b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/getevery/public_html/add/add.php</b> on line <b>118</b><br /> <hr> --> <div id="descriptionContainer" style="border: 1px dotted gray; padding: 10px; text-align: left;"> <table cellspacing="0" cellpadding="0" border="0" summary="description table" id="descriptionTbl" width="100%"> <tr> <td align="left" valign="top" class="tblHeader1"> <strong>description:</strong> ( <a rel="nofollow" href="http://library.nu/>?</a> ) </td> <td align="right" valign="top" class="tblHeader1" style="font-weight: normal; color:black;"> </td> </tr> <tr> <td align=left valign="top" colspan="2"> <br /> </td> </tr> <tr> <td align=left valign="top" colspan="2"> <span style="font-size:120%;">Programmieren mit Wolfram Mathematica® (eXamen.press) (German Edition)</span><br /> By <strong>Axel Kilian</strong><br /> <br /> <br /> <ul><li> <strong>Publisher:</strong>  Springer </li> <li> <strong>Number Of Pages:</strong>  264 </li> <li> <strong>Publication Date:</strong>  2009-11-01 </li> <li> <strong>ISBN-10 / ASIN:</strong>  3642046711 </li> <li> <strong>ISBN-13 / EAN:</strong>  9783642046711 </li></ul><br /> <br /> <strong>Product Description: </strong><br /> <p></p><p>Dieses von einem erfahrenen Praktiker geschriebene Buch wendet sich an alle Benutzer von Mathematica®. Der Neuling macht schnell die ersten Schritte und lernt vor allem zunächst, die eingebaute Hilfe und Dokumentation effizient zu nutzen. Dem Fortgeschrittenen helfen die prototypischen Beispiele und vor allem auch eine umfangreiche Sammlung elementarer Tricks und Kniffe. Der Experte findet hier nicht einfach nur Rezepte, sondern vor allem Konzepte und Techniken zur Behandlung komplexerer Aufgabenstellungen.</p> <p>Anhand der vielen Programmierbeispiele unterschiedlichen Schwierigkeitsgrades, lernt der Leser ganz nebenbei Lösungen konkreter Probleme kennen. Jedes der Programmierbeispiele beginnt mit einer Beschreibung der Aufgabenstellung, gefolgt von der Analyse, der Diskussion verschiedener Lösungsansätze und schließlich einer Implementierung im Sinne der beschriebenen Programmiergrundsätze. Die ebenfalls behandelten grafischen Benutzeroberflächen bilden einen weiteren Schwerpunkt dieses Buches.</p><br /> <br /> </td> </tr> </table> </div> <!-- Programmieren mit Wolfram Mathematica® (eXamen.press) Final existitem<br /> <b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/getevery/public_html/add/add.php</b> on line <b>118</b><br /> <hr> --> <div id="descriptionContainer" style="border: 1px dotted gray; padding: 10px; text-align: left;"> <table cellspacing="0" cellpadding="0" border="0" summary="description table" id="descriptionTbl" width="100%"> <tr> <td align="left" valign="top" class="tblHeader1"> <strong>description:</strong> ( <a rel="nofollow" href="http://library.nu/>?</a> ) </td> <td align="right" valign="top" class="tblHeader1" style="font-weight: normal; color:black;"> </td> </tr> <tr> <td align=left valign="top" colspan="2"> <br /> </td> </tr> <tr> <td align=left valign="top" colspan="2"> <p align="center"></p> <p> </p> <hr /><p><br /> <span style="font-size:120%;">Designing with Video: Focusing the user-centred design process</span><br /> By <strong>Salu Ylirisku, Jacob Buur</strong></p> <hr /><p><br /> </p> <ul><li> <strong>Publisher:</strong> Springer </li> <li> <strong>Number Of Pages:</strong> 244 </li> <li> <strong>Publication Date:</strong> 2007-12-06 </li> <li> <strong>ISBN-10 / ASIN:</strong> 1846289602 </li> <li> <strong>ISBN-13 / EAN:</strong> 9781846289606 </li> <li> <strong>Binding:</strong> Hardcover </li> </ul><p> </p> <hr /><p><br /> <strong>Product Description: </strong></p> <p> </p> <p>Digital video for user-centred co-design is an emerging field of design, gaining increasing interest in both industry and academia. It merges the traditions of design ethnography, participatory design, interaction analysis, scenario-based design, and usability studies into an integrated approach, which values the designer’s capacity to study and change the world creatively.</p> <p> </p> <p><em>Designing with Video: Focusing the User-centred Design Process</em> covers the whole user-centred design project. The book illustrates in detail how digital video can be utilised throughout a design process, from the early user studies, through making sense of the video content and envisioning the future with video scenarios, to provoking change with video artefacts.</p> <p> </p> <p>A must-read for those wishing to create more value through insightful design, the text builds upon a wealth of real, first-hand case studies both in academic and industrial contexts, and is complemented by video excerpts. Teachers, students and professionals in design will all benefit from this approach for developing new ways of enhancing their design processes.</p> <p> </p> <p><br /> </p> </td> </tr> </table> </div> <!-- Designing with Video: Focusing the user-centred design process Final exist Thank you Quote Link to comment https://forums.phpfreaks.com/topic/246609-remove-html-code-from-text/ Share on other sites More sharing options...
trq Posted September 7, 2011 Share Posted September 7, 2011 Where exactly are you stuck? We are not here to write code for you. Quote Link to comment https://forums.phpfreaks.com/topic/246609-remove-html-code-from-text/#findComment-1266354 Share on other sites More sharing options...
silkfire Posted September 7, 2011 Share Posted September 7, 2011 use the magical strip_tags() function on your text. Quote Link to comment https://forums.phpfreaks.com/topic/246609-remove-html-code-from-text/#findComment-1266363 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.