rgb192
asked on
html to regular text using php function
convert
<br>
<p>hi how are you<p>
<b>bold</b>
into regular text
using a php function
<br>
<p>hi how are you<p>
<b>bold</b>
into regular text
using a php function
Another one.. http://www.chuggnutt.com/html2text.php
Sorry earlier I miss understood the question, that you code to convert html2php , later I identified you want html2text.
http://sb2.info/php-script-html-plain-text-convert/
http://www.tipsntutorials.com/tips/PHP/41
http://sb2.info/php-script-html-plain-text-convert/
http://www.tipsntutorials.com/tips/PHP/41
Try this:
<?php
$str_html = '<br>
<p>hi how are you<p>
<b>bold</b>';
echo strip_tags($str_html);
?>
forever strip_tags() !
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
ASKER
I have a similar more complex question that involves entering any html into a database and the database being able to save muliptle lines without using html
https://www.experts-exchange.com/questions/26852658/no-html-tags.html
https://www.experts-exchange.com/questions/26852658/no-html-tags.html
ASKER
Disregard previous
I want to do this with a more complex h1 tag
https://www.experts-exchange.com/questions/26862770/convert-html-into-regular-text.html
I want to do this with a more complex h1 tag
https://www.experts-exchange.com/questions/26862770/convert-html-into-regular-text.html
echo"<br>";
echo "<p>hi how are you<p>";
echo "<b>bold</b>";
?>