Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

remove all html codes using php

<?php
  // Remove all html codes from a string
  	$html = '<p>I love <em>codes</em>.<br>We shall keep the learning going</p>';
	echo strip_tags($html);
	echo '<br>';
	// Remove specific html tag/s from a string
	echo strip_tags($html, '<br>');
?>
 
PREVIOUS NEXT
Tagged: #remove #html #codes #php
ADD COMMENT
Topic
Name
3+3 =