-
Notifications
You must be signed in to change notification settings - Fork 191
Rename AppendEncoded()
to AppendHtml()
#451
Conversation
@@ -29,7 +29,7 @@ public interface IHtmlContentBuilder : IHtmlContent | |||
/// </summary> | |||
/// <param name="encoded">The HTML encoded <see cref="string"/> to append.</param> | |||
/// <returns>The <see cref="IHtmlContentBuilder"/>.</returns> | |||
IHtmlContentBuilder AppendEncoded(string encoded); | |||
IHtmlContentBuilder AppendHtml(string encoded); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the documenation and parameter name change? example: AppendHtml("<b>")
...the string is not encoded but raw html...
Same comment in all other relevant places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter name is entirely correct and a good counterpoint to the unencoded
parameter in Append()
. In your example "<b>"
is as encoded as it's going to get.
607d975
to
8ef572c
Compare
Also correct parameter names and doc comments - add `xml-docs-test` to ensure this doc comments remain valid in the future
@kichalla updated to fix parameter names, |
@@ -26,9 +26,9 @@ internal class BufferedHtmlContent : IHtmlContentBuilder | |||
/// </summary> | |||
/// <param name="value">The <c>string</c> to be appended.</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xml-docs-test
missed this. will fix.
@kichalla CI builds are failing because Coherence hasn't made recent Common changes available. This is ready to go. |
AppendEncoded()
toAppendHtml()
andSetContentEncoded()
toSetHtmlContent()
Mvc#3225, 1 of 3