I have a string variable that contains mixed human language and HTML. I would like to delete all all the HTML portion embed in the "<" and ">". I tried the following:
gsub("\\<[^\\<]*\\>", "", subject, perl=TRUE);
But I was told that \< is not valid escape. Can anyone help me with the problem? Many thanks!