Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug fix for publish#html_encode()

  • Loading branch information...
commit 5df4c3d750654a330e077eb96a781c9b8d4dab7c 1 parent 4fa75be
@xolox authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 autoload.vim
View
8 autoload.vim
@@ -1,6 +1,6 @@
" Vim script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: August 31, 2010
+" Last Change: September 5, 2010
" URL: http://peterodding.com/code/vim/publish/
function! publish#resolve_files(directory, pathnames) " {{{1
@@ -269,9 +269,9 @@ function! publish#customize_html(page_title) " {{{1
endfunction
function! publish#html_encode(s) " {{{1
- let s = substitute(a:s, '&', '&amp;', 'g')
- let s = substitute(s, '<', '&lt;', 'g')
- let s = substitute(s, '>', '&gt;', 'g')
+ let s = substitute(a:s, '&', '\&amp;', 'g')
+ let s = substitute(s, '<', '\&lt;', 'g')
+ let s = substitute(s, '>', '\&gt;', 'g')
return s
endfunction
Please sign in to comment.
Something went wrong with that request. Please try again.