Strip all HTML and replace with the given rep_str.
out_str = text_striphtml(in_str [,rep_str]);
Input string
Replacement string
Output string
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.
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); | ![]() | ![]() |
Andrew Ng, Machine Learning Online Course, Week 6 notes and assignment: https://www.coursera.org/learn/machine-learning