Prev: uitable GUI
Next: read .dat
From: tal on
Hello,
I have a cell table with some simple formating using HTML i would like to see if there is a way to drop the html formating and to leave the text only.
Example:
'<html><span style="background-color: #AABBCC;">Test123</span></html>'
will become:
'Test123'

Thanks,
From: David Young on
A quick first stab at this would be

textstripped = regexprep(text, '<.*?>', '')
From: tal on
"David Young" <d.s.young.notthisbit(a)sussex.ac.uk> wrote in message <hv5oe1$jro$1(a)fred.mathworks.com>...
> A quick first stab at this would be
>
> textstripped = regexprep(text, '<.*?>', '')

Grate,
simple and elegant.
 | 
Pages: 1
Prev: uitable GUI
Next: read .dat