- Function noHTML ($ content)
- {
- $ Content = preg_replace ("/] *>/I", '', $ content );
- $ Content = preg_replace ("/<\/a>/I", '', $ content );
- $ Content = preg_replace ("/ ] *>/I ",'', $ content );
- $ Content = preg_replace ("/<\/p>/I", '', $ content );
- $ Content = preg_replace ("/] *>/I", '', $ content );
- $ Content = preg_replace ("/<\/font>/I", '', $ content );
- $ Content = preg_replace ("/ ] *>/I ",'', $ content );
- $ Content = preg_replace ("/<\/p>/I", '', $ content );
- $ Content = preg_replace ("/] *>/I", '', $ content );
- $ Content = preg_replace ("/<\/span>/I", '', $ content );
- $ Content = preg_replace ("/<\? Xml [^>] *>/I ",'', $ content );
- $ Content = preg_replace ("/<\/\? Xml>/I ",'', $ content );
- $ Content = preg_replace ("/ ] *>/I ",'', $ content );
- $ Content = preg_replace ("/<\/o: p>/I", '', $ content );
- $ Content = preg_replace ("/ ] *>/I ",'', $ content );
- $ Content = preg_replace ("/<\/u>/I", '', $ content );
- $ Content = preg_replace ("/ ] *>/I ",'', $ content );
- $ Content = preg_replace ("/<\/B>/I", '', $ content );
- $ Content = preg_replace ("/ ] *>/I ",'', $ content );
- $ Content = preg_replace ("/<\/meta>/I", '', $ content );
- $ Content = preg_replace ("/ /I ",'', $ content); // comment the content
- $ Content = preg_replace ("/ ] * -->/I ",'', $ content); // comment the content
- $ Content = preg_replace ("/style =. +? ['| \ "]/I", '', $ content); // remove the style
- $ Content = preg_replace ("/class =. +? ['| \ "]/I", '', $ content); // remove the style
- $ Content = preg_replace ("/id =. +? ['| \ "]/I", '', $ content); // remove the style
- $ Content = preg_replace ("/lang =. +? ['| \ "]/I", '', $ content); // remove the style
- $ Content = preg_replace ("/width =. +? ['| \ "]/I", '', $ content); // remove the style
- $ Content = preg_replace ("/height =. +? ['| \ "]/I", '', $ content); // remove the style
- $ Content = preg_replace ("/border =. +? ['| \ "]/I", '', $ content); // remove the style
- $ Content = preg_replace ("/face =. +? ['| \ "]/I", '', $ content); // remove the style
- $ Content = preg_replace ("/face =. +? ['| \ "]/", '', $ Content );
- $ Content = preg_replace ("/face =. +? ['| \ "]/", '', $ Content );
- $ Content = str_replace ("", "", $ content );
- Return $ content;
- }
>>> Articles you may be interested in: PHP code for deleting html tags php code for determining whether a string contains html tags for extracting html tags php code examples for extracting HTML tags php two ways for removing HTML tags php remove redundant html tag php regular query html tags containing id attributes php use strip_tags to completely remove all html tags examples share php three ways to delete html tags share php delete html tags and html tags in strings php code to remove the html tag in the string. the Function extracts the html tag. php code: php regular filter. html tags, spaces, line breaks, and other code examples fix HTML tags that are not properly closed (nested and close nearby) php code to remove html tags to obtain the code of the input plain text document strip_tagsphp to enable HTML tags to automatically complete the closure function php code to implement html tag auto-completion code |