Skip to content

Commit

Permalink
Fix XML decoding of ampersands
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Mar 29, 2009
1 parent 2bafb77 commit 8e18215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/unimpaired.vim
Expand Up @@ -177,7 +177,7 @@ function! s:XmlEntityDecode(str)
let str = substitute(str,'\c"','"','g')
let str = substitute(str,'\c>','>','g')
let str = substitute(str,'\c&lt;','<','g')
let str = substitute(str,'\C&\(\w*\);','\=nr2char(get(g:impaired_html_entities,submatch(1),63))','g')
let str = substitute(str,'\C&\(\%(amp;\)\@!\w*\);','\=nr2char(get(g:impaired_html_entities,submatch(1),63))','g')
return substitute(str,'\c&amp;','\&','g')
endfunction

Expand Down

0 comments on commit 8e18215

Please sign in to comment.