Update < and > in error messages to not be double encoded.

This commit is contained in:
N. Taylor Mullen 2015-09-18 16:42:39 -07:00
parent 392b7a3710
commit 7c1f18c0a4
4 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<packageSources> <packageSources>
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetcidev/api/v3/index.json" /> <add key="AspNetVNext" value="https://www.myget.org/F/aspnetcidev/api/v3/index.json" />

View File

@ -155,7 +155,7 @@ namespace Microsoft.AspNet.Razor.Runtime
} }
/// <summary> /// <summary>
/// Invalid tag helper directive '{0}' value. '{1} is not allowed in prefix '{2}'. /// Invalid tag helper directive '{0}' value. '{1}' is not allowed in prefix '{2}'.
/// </summary> /// </summary>
internal static string TagHelperDescriptorResolver_InvalidTagHelperPrefixValue internal static string TagHelperDescriptorResolver_InvalidTagHelperPrefixValue
{ {
@ -163,7 +163,7 @@ namespace Microsoft.AspNet.Razor.Runtime
} }
/// <summary> /// <summary>
/// Invalid tag helper directive '{0}' value. '{1} is not allowed in prefix '{2}'. /// Invalid tag helper directive '{0}' value. '{1}' is not allowed in prefix '{2}'.
/// </summary> /// </summary>
internal static string FormatTagHelperDescriptorResolver_InvalidTagHelperPrefixValue(object p0, object p1, object p2) internal static string FormatTagHelperDescriptorResolver_InvalidTagHelperPrefixValue(object p0, object p1, object p2)
{ {

View File

@ -1499,7 +1499,7 @@ namespace Microsoft.AspNet.Razor
} }
/// <summary> /// <summary>
/// Found an end tag (&amp;lt;/{0}&amp;gt;) for tag helper '{1}' with tag structure that disallows an end tag ('{2}'). /// Found an end tag (&lt;/{0}&gt;) for tag helper '{1}' with tag structure that disallows an end tag ('{2}').
/// </summary> /// </summary>
internal static string TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag internal static string TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag
{ {
@ -1507,7 +1507,7 @@ namespace Microsoft.AspNet.Razor
} }
/// <summary> /// <summary>
/// Found an end tag (&amp;lt;/{0}&amp;gt;) for tag helper '{1}' with tag structure that disallows an end tag ('{2}'). /// Found an end tag (&lt;/{0}&gt;) for tag helper '{1}' with tag structure that disallows an end tag ('{2}').
/// </summary> /// </summary>
internal static string FormatTagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag(object p0, object p1, object p2) internal static string FormatTagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag(object p0, object p1, object p2)
{ {
@ -1515,7 +1515,7 @@ namespace Microsoft.AspNet.Razor
} }
/// <summary> /// <summary>
/// The parent &amp;lt;{0}&amp;gt; tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) '{1}' are allowed. /// The parent &lt;{0}&gt; tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) '{1}' are allowed.
/// </summary> /// </summary>
internal static string TagHelperParseTreeRewriter_CannotHaveNonTagContent internal static string TagHelperParseTreeRewriter_CannotHaveNonTagContent
{ {
@ -1523,7 +1523,7 @@ namespace Microsoft.AspNet.Razor
} }
/// <summary> /// <summary>
/// The parent &amp;lt;{0}&amp;gt; tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) '{1}' are allowed. /// The parent &lt;{0}&gt; tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) '{1}' are allowed.
/// </summary> /// </summary>
internal static string FormatTagHelperParseTreeRewriter_CannotHaveNonTagContent(object p0, object p1) internal static string FormatTagHelperParseTreeRewriter_CannotHaveNonTagContent(object p0, object p1)
{ {
@ -1531,7 +1531,7 @@ namespace Microsoft.AspNet.Razor
} }
/// <summary> /// <summary>
/// The &amp;lt;{0}&amp;gt; tag is not allowed by parent &amp;lt;{1}&amp;gt; tag helper. Only child tag helper(s) targeting tag name(s) '{2}' are allowed. /// The &lt;{0}&gt; tag is not allowed by parent &lt;{1}&gt; tag helper. Only child tag helper(s) targeting tag name(s) '{2}' are allowed.
/// </summary> /// </summary>
internal static string TagHelperParseTreeRewriter_InvalidNestedTag internal static string TagHelperParseTreeRewriter_InvalidNestedTag
{ {
@ -1539,7 +1539,7 @@ namespace Microsoft.AspNet.Razor
} }
/// <summary> /// <summary>
/// The &amp;lt;{0}&amp;gt; tag is not allowed by parent &amp;lt;{1}&amp;gt; tag helper. Only child tag helper(s) targeting tag name(s) '{2}' are allowed. /// The &lt;{0}&gt; tag is not allowed by parent &lt;{1}&gt; tag helper. Only child tag helper(s) targeting tag name(s) '{2}' are allowed.
/// </summary> /// </summary>
internal static string FormatTagHelperParseTreeRewriter_InvalidNestedTag(object p0, object p1, object p2) internal static string FormatTagHelperParseTreeRewriter_InvalidNestedTag(object p0, object p1, object p2)
{ {

View File

@ -417,12 +417,12 @@ Instead, wrap the contents of the block in "{{}}":
<value>Tag helpers '{0}' and '{1}' targeting element '{2}' must not expect different {3} values.</value> <value>Tag helpers '{0}' and '{1}' targeting element '{2}' must not expect different {3} values.</value>
</data> </data>
<data name="TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag" xml:space="preserve"> <data name="TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag" xml:space="preserve">
<value>Found an end tag (&amp;lt;/{0}&amp;gt;) for tag helper '{1}' with tag structure that disallows an end tag ('{2}').</value> <value>Found an end tag (&lt;/{0}&gt;) for tag helper '{1}' with tag structure that disallows an end tag ('{2}').</value>
</data> </data>
<data name="TagHelperParseTreeRewriter_CannotHaveNonTagContent" xml:space="preserve"> <data name="TagHelperParseTreeRewriter_CannotHaveNonTagContent" xml:space="preserve">
<value>The parent &amp;lt;{0}&amp;gt; tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) '{1}' are allowed.</value> <value>The parent &lt;{0}&gt; tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) '{1}' are allowed.</value>
</data> </data>
<data name="TagHelperParseTreeRewriter_InvalidNestedTag" xml:space="preserve"> <data name="TagHelperParseTreeRewriter_InvalidNestedTag" xml:space="preserve">
<value>The &amp;lt;{0}&amp;gt; tag is not allowed by parent &amp;lt;{1}&amp;gt; tag helper. Only child tag helper(s) targeting tag name(s) '{2}' are allowed.</value> <value>The &lt;{0}&gt; tag is not allowed by parent &lt;{1}&gt; tag helper. Only child tag helper(s) targeting tag name(s) '{2}' are allowed.</value>
</data> </data>
</root> </root>