Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bug fix for publish#html_encode()

  • Loading branch information...
commit 5df4c3d750654a330e077eb96a781c9b8d4dab7c 1 parent 4fa75be
Peter Odding authored September 05, 2010

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  autoload.vim
8  autoload.vim
... ...
@@ -1,6 +1,6 @@
1 1
 " Vim script
2 2
 " Author: Peter Odding <peter@peterodding.com>
3  
-" Last Change: August 31, 2010
  3
+" Last Change: September 5, 2010
4 4
 " URL: http://peterodding.com/code/vim/publish/
5 5
 
6 6
 function! publish#resolve_files(directory, pathnames) " {{{1
@@ -269,9 +269,9 @@ function! publish#customize_html(page_title) " {{{1
269 269
 endfunction
270 270
 
271 271
 function! publish#html_encode(s) " {{{1
272  
-  let s = substitute(a:s, '&', '&amp;', 'g')
273  
-  let s = substitute(s, '<', '&lt;', 'g')
274  
-  let s = substitute(s, '>', '&gt;', 'g')
  272
+  let s = substitute(a:s, '&', '\&amp;', 'g')
  273
+  let s = substitute(s, '<', '\&lt;', 'g')
  274
+  let s = substitute(s, '>', '\&gt;', 'g')
275 275
   return s
276 276
 endfunction
277 277
 

0 notes on commit 5df4c3d

Please sign in to comment.
Something went wrong with that request. Please try again.