Win prizes like Hard Disk, Pen drives, T-Shirts etc.
for more information
SharePoint Articles ↓
SharePoint Object Model
MasterPage & Page Layout
List & Library
View All Jobs
See All News
.Net Articles ↓
Testing (QTP) Training
Request a Quote
How to remove Html tags from string in c#
04-Jan-2012 12:23 PM
MasterPage and PageLayOut
Hi all, I have some html text that are saved from WYSIWYG editor, I need to remove the html tags from the html text, since its not appearing good for my design. So I want to show normal characters.
If You Like this Post, Please Like us in Facebook and Follow us in Twitter
Share This Now >>
04-Jan-2012 2:33 PM
Hi Try like below.
Namespace: using System.Text.RegularExpressions;
public string GetNormalText(string htmlText)
return Regex.Replace(htmlText, @”<(.|\n)*?>”, string.Empty);
To insert images, Upload images
or you can use flickr or picasa to upload images. After that paste the image url in the editor image dialog box.
Related Forum Posts
-How to hide downlaod a copy option in document library in sharepoint 2010?
-This User Profile Application’s connection is currently not available
-How to know who created a list view in SharePoint 2013?
-InfoPath 2010 publishing errors
See all forum posts
-Extract all list names from SharePoint 2013 site to csv
-A timeout 30000 milliseconds was reached while waiting for a...
-DCOM was unable to communicate with the computer computer na...
-Package DB Squeez failed error
-The data management gateway Host Service service terminated ...
-A certificate validation operation took milliseconds and has...
See all articles
Recent Forum Posts
-Which is best advance HelpDesk, Ticketing Tool and Case mana...
-Issue with site edit page in share point 2013 in IE11.
-Article fix required
-Not able to see SharePoint 2016 templates in visual studio 2...
-Sorry something went wrong while Nintex workflow for Office ...
-customize form sharepoint 2013 not working in ie 11
See all forum posts
Forum Topics By Category
AngularJS SharePoint 2013 (0)
Backup and Restore (9)
Business Conectivity Services (7)
CAML and LINQ (14)
Central Administration (15)
Excel Services (11)
Featurs and Event Receivers (20)
Interview Questions (3)
List and Library (212)
MasterPage and PageLayOut (36)
Moss 2007 (5)
Product Reviews (0)
REST API SharePoint 2013 (30)
SharePoint 2010 (221)
SharePoint 2013 (278)
SharePoint 2013 Apps (47)
SharePoint 2016 (20)
SharePoint 3rd party tools (11)
Sharepoint Customization (60)
SharePoint Designer (47)
SharePoint Object Model (74)
SharePoint Online and Office 365 (101)
SharePoint Search (70)
SharePoint Security (43)
Site Collection and Web Application (28)
Site Definition and Templates (6)
Video Tutorials (2)
Visual Studio (22)
WCF and Web Service (3)
Forum Topic Replies
30-Jun-2016 1:01 PM
So until we get official CU or SP from SharePoint team, run your sites in c...
30-Jun-2016 12:56 PM
Hi,You need to download Visual studio Template for SharePoint 2016. now the...
03-Jun-2016 8:34 AM
Resolution: To resolve this issue we need to add below lines to <body>...
01-Jun-2016 9:00 AM
I have already done that even though workflow suspended
01-Jun-2016 8:11 AM
Go to your SharePoint Group -> Then group settings -> &n...
01-Jun-2016 5:38 AM
regarding my first issue my workflow suspended in 8 th stage as you told m...
See all topic replies
Subscribe by e-mail address to receive latest news and updates.