Skip to content

Commit 8c0fe56

Browse files
committed
add StringExtensions.StripHtml option
- The StripHtml function only removes tags by default and leave html character codes in tact. This change adds and option (default off) to the StripHtml function telling it to make a second pass which unencodes the html encoded characters that remain.
1 parent c8c28d9 commit 8c0fe56

File tree

4 files changed

+2221
-1
lines changed

4 files changed

+2221
-1
lines changed

src/ServiceStack.Common/ServiceStack.Common.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@
361361
<Compile Include="StringExtensions.cs">
362362
<SubType>Code</SubType>
363363
</Compile>
364+
<Compile Include="StringExtensions.HtmlHelpers.cs" />
364365
<Compile Include="Support\ActionExecHandler.cs">
365366
<SubType>Code</SubType>
366367
</Compile>

0 commit comments

Comments
 (0)