Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • ianhoughton 281 posts 605 karma points c-trib
    Oct 29, 2013 @ 13:29
    ianhoughton
    0

    V6 API Create content - Adding HTML into RTE

    Umbraco V6.1.5

    I'm trying to insert some HTML from some old blog posts into the bodyText field (RTE), but all of the tags, spaces and line returns are getting stripped out. The tags are the normal <b> so nothing that tinyMce should be stripping.

    var contentService = new ContentService();
    
    var post = contentService.CreateContent(postTitle, blogSection, "NewsArticle");
    
    post.SetValue("bodyText", postData);
    post.SetValue("articleDate", postDate);
    contentService.SaveAndPublish(post);
Please Sign in or register to post replies

Write your reply to:

Draft