diff --git a/pwiki/path.js b/pwiki/path.js index fa3fd9b..6b3b952 100755 --- a/pwiki/path.js +++ b/pwiki/path.js @@ -94,6 +94,17 @@ module = { quote: makeEncoder('quote', 'UNENCODED_PATH'), unquote: makeDecoder('unquote', 'quote', 'UNENCODED_PATH'), + quoteHTML: function(str){ + return str + .replace(/&/g, '&') + .replace(/>/g, '>') + .replace(/') + .replace(/</g, '<') }, + // Path utils... // diff --git a/pwiki2.js b/pwiki2.js index 3e4788b..1708c95 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -38,9 +38,8 @@ * * * -* XXX parser: error handling: revise page quoting... -* ...need a standard mechanism to quote urls, url-args and paths... * XXX BUG? can't use < and > (both?) in page title... +* ...can't seem to delete these pages -- seems to be a template problem... * XXX parser: error handling: add line number + context... (???) * XXX BUG: parser: * This will break: @@ -266,6 +265,8 @@ * fixable (more general macro name pattern + ns matching) but I'm not * sure if this is worth it * ...see: .defmacro(..) +* XXX parser: error handling: revise page quoting... +* ...need a standard mechanism to quote urls, url-args and paths... * XXX sort: revise how we store order... * .metadata.order = [ .. ] * .metadata.order_ = [ .. ]