Hey Guys,

Gotta a real problem,

On My Homepage I am displaying a short description of a blog post and some times there might be a link or a h1 tag and it screws up the whole index page. I tried looking for different php functions on php.net but though only show the code not get rid of it.

Can Anyone Help?
🙂

    If you do not want to strip away those <h1> and other html tags ( [man]strip_tags[/man] )
    you have these 2 functions to use:
    [man]htmlspecialchars[/man]
    [man]htmlentities[/man]

    I use often htmlspecialchars() because mostly it is good enough.
    It is the LITE version of htmlentities()

    echo htmlspecialchars( $htmltext );
    // or
    echo htmlentities( $htmltext );

      thats it!! thanks... and do you know how to make a topic solved??

        Under the Thread Tools menu option, select Mark Thread Resolved.

          Write a Reply...