Hàm
This is a Example String this a other string This is a Example String this a other string5 sẽ loại bỏ các thẻ HTML và PHP ra khỏi chuỗi. Hàm sẽ trả về chuỗi đã loại bỏ hết các thẻ HTML và PHP.
Nội dung chính ShowShow
- Cùng chuyên mục:
- Definition and Usage
- Parameter Values
- Technical Details
- More Examples
- Remove all HTML tags from PHP string with content!
- Not the answer you're looking for? Browse other questions tagged php or ask your own question.
- How can we remove the HTML tags from the data in PHP?
- How can we remove the HTML tags from the data?
- Which function is used to remove all HTML tags from a string passed to A from?
- How do I remove HTML tag from string in Wordpress?
Nội dung chính
- Cùng chuyên mục:
- Definition and Usage
- Parameter Values
- Technical Details
- More Examples
- Remove all HTML tags from PHP string with content!
- Not the answer you're looking for? Browse other questions tagged php or ask your own question.
- How can we remove the HTML tags from the data in PHP?
- How can we remove the HTML tags from the data?
- Which function is used to remove all HTML tags from a string passed to A from?
- How do I remove HTML tag from string in Wordpress?
String
this a other string
'; echo $str; echo strip_tags[$str] . "";
Code
This is a Example String this a other string This is a Example String this a other string
Ví dụ
$str = 'This is a Example Stringthis a other string
'; echo $str; echo strip_tags[$str, 'Other text'; echo strip_tags[$text]; //output Test paragraph. Other text
SyntaxFeb 4, 2013 at 9:48
ParameterYogesh Suthar
Description18 gold badges70 silver badges98 bronze badges
4
string
Required. Specifies the string to check
$businessDesc = strip_tags[$row_get_Business['business_description']];
$businessDesc = substr[$businessDesc, 0, 110];
print[$businessDesc];
SyntaxFeb 4, 2013 at 9:48
EM-CreationsEM-CreationsEM-Creations
Parameter4 gold badges38 silver badges55 bronze badges
2
Remove all HTML tags from PHP string with content!
Description
$srting = 'Some Text
Lorem Ipsum is simply dummy text of the printing and typesetting industry.';
echo strip_tags_content[$srting];
function strip_tags_content[$text] {
return preg_replace['@.*?@si', '', $text];
}
Output:
string
Required. Specifies the string to check Sep 4, 2016 at 18:26
allow Muhammad Shahzad
Optional. Specifies allowable tags. These tags will not be removed 21 gold badges79 silver badges128 bronze badges
1
Return Value:
$val = preg_replace['/