Jump to content
php.lv forumi

Dzēst tagus


yeahz

Recommended Posts

function strip_html_tags($text) {
   // allowed tags
   $tags = '<p><a><strong><em><u><strike><sub><sup><li><ol><ul><blockquote><img><br><table><tr><td><th><hr><h1><h2><h3><h4><h5><h6><h7><h8><h9><span>';
   return strip_tags($text, $tags);
}

 

šis iet tajā funkcijā

 

<iframe src ="http://www.tvnet.lv" width="100%" height="300">
 <p>Your browser does not support iframes.</p>
</iframe>

 

un rezultāts:

 

Your browser does not support iframes.

 

no kurienes tas uzradās?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...