Escape strings

This commit is contained in:
2016-03-09 23:42:55 +08:00
parent 49d9bb0f4f
commit cbd36260dc
10 changed files with 64 additions and 35 deletions

View File

@@ -20,6 +20,7 @@
var XDate = __import( "Astro.utils.Date" );
var escapeStr = ns[ NS_INVOKE ]( "escapeStr" );
var unescapeStr = ns[ NS_INVOKE ]( "unescapeStr" );
var compileProp = ns[ NS_INVOKE ]( "compileProp" );
var postData = __import( "System.Net.postData" );
@@ -72,8 +73,8 @@
if( override )
{
id = override.value;
title = override.title || "";
id = unescapeStr( override.value );
title = unescapeStr( override.title ) || "";
}
else
{
@@ -160,7 +161,7 @@
if( opt = stage.getDAttribute( "title" ) )
{
options += " title=\"" + opt + "\"";
options += " title=\"" + escapeStr( opt ) + "\"";
}
return "[articlelink" + options + "]"