0
3
The question is this, i have some text that i bring from the DB. The info is recorded as HTML. When i bring that info, it comes as "<b>hello world</b>" i mean, it comes all the html as string, and i want to use that string as html. ...
2011-05-04
0
2
How would i go about decompress a html file in php? The html file is compressed by removing spaces and new lines i cant use the php tidy function as i do not have it insatlled on my server is there any other way of getting around it? e.g HTML ...
2011-01-15
8
5
I have a string that might look like this $str = "<p>Me & Mrs Jones <br /> live in <strong style="color:#FFF;">Espa?a</strong></p>"; htmlentities($str,ENT_COMPAT,'UTF-8',false); How can I convert the text to H...
2009-12-22
2
1
I'm using a HTML form's TEXTAREA field that will contain text and it may can contain itself some HTML tags. I have read here that this should be managed using htmlspecialchars function, however this will show the HTML tags in a way it will be qui...
2010-09-23
2
4
I'm trying to learn how to use PHP's DOM functions. As an exercise, I want to repair an invalid HTML fragment. So far, I've been able to produce a full document: <?php $fragment = '<div style="font-weight: bold">Lorem ipsum <div>...
2010-12-30
1
2
I am going to create a HTML generator based on PHP, this generator will help me to create some HTML file. The HTML file's content is based on the data input by user. Is there any PHP class or PHP framework I can used to develop this tools in a ea...
2011-06-10
0
2
Possible Duplicate:Best methods to parse HTMLHow to get href from anchor tag with particular class hi guys, I need an html parser. Baiscally given an html in a string i need to extract every href of Which html parser for php do u sugges...
2
4
How can stop HTML code from rendering and display it as standard text, so my users can simply copy and paste it for their own usage? ...
2011-03-30
2
3
Is this the correct way to parse html files as php? RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html Saved in a .htaccess file in my root folder? I am adding in a navigation bar that is called in via php and this would...
5
3
I'm having an html file, index.php I want to take the content within a <div> with the class main of that file and replace it with another text. How can i achieve that? Sample content in html: <div class="main"> Replace this text wit...