Guest User

Untitled

a guest
Feb 21st, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. private static string ElementCleaner(XElement el)
  2. {
  3. string s = "";
  4. switch (el.Name.LocalName)
  5. {
  6. case "StoryText":
  7. s = "<p>" + el.Value + "</p>";
  8. break;
  9. case "StorySubHeading":
  10. s = "<h2>" + el.Value + "</h2>";
  11. break;
  12. }
  13. return s;
  14. }
Add Comment
Please, Sign In to add comment