About us
|
Contact us
|
Advertise
|
Login
|
New User?
Signup
Follow @EnjoySharePoint
Articles
Jobs
Forum
Users
SharePoint Training
Hire a Developer
Articles
Jobs
Forum
Post Article
Post Job
Ask Question
How to remove Html tags from string in c#
04-Jan-2012 12:23 PM
1 Reply
Views: 1229
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.
SharePoint Product Ads - Sponsors!
Replies
04-Jan-2012 2:33 PM
Reply
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
here
or you can use flickr or picasa to upload images. After that paste the image url in the editor image dialog box.
OR
Name:
Email:
Captcha Code:
Related Forum Posts
-How to show SP Dialog box on custom application page in Sharepoint 2013?
-There are no addresses available for this application error in SharePoint 2013
-Error occured in deployment step Install App for SharePoint 2013
-How to get master page URL by using client object model in SharePoint 2013?
-SharePoint folder modified date does not get updated
See all forum posts
Recent Jobs:
-SharePoint Application Administrator
-SharePoint developer openings for a UK Based Company
-SharePoint developer walkin in Accenture
-SharePoint developer openings for various locations
-Looking for Sharepoint Developer for Robert Bosch
See all jobs
Follow @EnjoySharePoint
Recent Forum Posts
-Site Collection moving throw error “site collection a...
-How to read list item using Silverlight in SharePoint 2...
-How to check if a column exists in SharePoint List usin...
-Change width of Left Navigation Pane in SharePoint 2010
-can any one send how to delete custom list using Event ...
See all forum posts
Recent Articles
-Get column names of SharePoint list using SharePoint 20...
-SharePoint 2013 limits Part-2
-SharePoint 2013 limits Part-1
-Create content type in SharePoint 2013
-Activate Document sets in a site collection in SharePoi...
See all articles
Forum Topic Replies
16-May-2013 2:57 PM
Bijaya Kumar
Said:
Can you able to use SharePoint object model???
15-May-2013 8:22 AM
Bijaya Kumar
Said:
Check out this http://www.enjoysharepoint.com/Articles/Details/difference-b...
07-May-2013 11:40 AM
Ashwani
Said:
Hi Anusha, you can download SPDisposeCheck tool from http://archive.msdn.m...
02-May-2013 8:22 PM
onlysharepoint2013
Said:
Check out below URLhttp://www.onlysharepoint2013.com/2013/05/enable-disable...
See all topic replies
Subscription
Subscribe by e-mail address to receive latest news and updates.