Monday, February 1, 2010

Re: remove and clean CDATA out of xml

On Mon, February 1, 2010 4:49 pm, bw wrote:
> Your last comment made me think. I would like all the html encoded
> parts like É, é ’ etc... to be transformed into real
> utf8 as the feed should be utf8. (É, é and ')

Please don't top post.

Regarding your question, I believe this:
:%s/&#\(\d\+\);/\=printf("%s ", nr2char(str2nr(submatch(1),10)))/

should do what you want.


regards,
Christian

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: