<< text_stripemail text_analytics text_stripnumber >>

text_analytics >> text_analytics > text_striphtml

text_striphtml

Strip all HTML and replace with the given rep_str.

Syntax

out_str = text_striphtml(in_str [,rep_str]);

Parameters

in_str :

Input string

rep_str :

Replacement string

out_str :

Output string

Description

Looks for any expression that starts with < and ends with > and replace and does not have any < or > in the tag it with a given string, by default is space.

Examples

in_str = '<html><head><title>Page Title</title></head><body><h1>This is a Heading</h1><p>This is a paragraph.</p></body></html>';
out_str = text_striphtml(in_str);
disp(out_str);

See also

Authors

Bibliography

Andrew Ng, Machine Learning Online Course, Week 6 notes and assignment: https://www.coursera.org/learn/machine-learning


Report an issue
<< text_stripemail text_analytics text_stripnumber >>