Search
 
SCRIPT & CODE EXAMPLE
 

HTML

Strip off tags in text


<?php
$text = '<p>Test paragraph.</p><!-- Comment --> <a href="#fragment">Other text</a>';
echo strip_tags($text);
echo "
";

// Allow <p> and <a>
echo strip_tags($text, '<p><a>');

// as of PHP 7.4.0 the line above can be written as:
// echo strip_tags($text, ['p', 'a']);
?>

Comment

PREVIOUS NEXT
Code Example
Html :: https://progate.com/images/html/beginner/school.jpg 
Html :: HTML JWB2 
Html :: show html 
Html :: wire:click with value 
Html :: hoe to make a html page attractive 
Html :: create external application revit api 
Html :: Collapse all diffs in a pull request at once 
Html :: add img to botton 
Html :: como meter imagem html code 
Html :: apache serve json 
Html :: <a href="https://api.whatsapp.com/send?phone=15551234567"Send Message</a  
Html :: bootdtarp 
Html :: p5 
Html :: h vhjf 
Html :: zoneofdevelopment 
Html :: b-table-column v-slot undefined 
Html :: html document 4.0 
Html :: how to give h1 h2 in r studio 
Html :: table align center not working in github 
Html :: jQuery CDN | jQuery Migrate | jQuery UI | jQuery Mobile Latest Version 
Html :: html input max words 
Html :: devexpress aspxdatagridview set column alignment 
Html :: iframe html pdf download 
Html :: Title Tag Checker 
Html :: open a website within a website 
Html :: html code element 
Html :: eleventy loop over global data 
Html :: custom elements cannot query slot tags html5 
Html :: HRECURS - Hello Recursion 
Html :: change the size of canvas char.js 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =