- Sep 3, 2011
- 12
- 0
- 0
Hi there,
Currently I'm working on an app that has code elements from the WordPress sample built-in. This means however, that posts show up in a WebBrowser control. As the WebBrowser control overrides the gesture events, swipes to the left or right are being ignored by the pivot.
I'm currently passing the source of the WebBrowser to a RichTextBox, but I've been unable to remove HTML-tags, like <p class="">, <img>, etc.
var html = new StringBuilder();
html.Replace("<p>", String.Empty);h
tml.Append(htmlSubString);
return html.ToString();
When I remove the html.Append(htmlSubString); the entire content of the textbox disappears...
I'm currently trying to use this code as a "filter", but it does not seem to work. As I've never worked with this part of coding before, it's hard for me to understand why this doens't work.
It would be great if someone could show me a revised version of my code or some website with an explanation so I can finally finish this app.
Also IF it is not too much of a problem, I'd like the images in the HTML to be converted into an image in XAML.
Anyone know how to do this? If not, thanks for reading anyway :wink:
Currently I'm working on an app that has code elements from the WordPress sample built-in. This means however, that posts show up in a WebBrowser control. As the WebBrowser control overrides the gesture events, swipes to the left or right are being ignored by the pivot.
I'm currently passing the source of the WebBrowser to a RichTextBox, but I've been unable to remove HTML-tags, like <p class="">, <img>, etc.
var html = new StringBuilder();
html.Replace("<p>", String.Empty);h
tml.Append(htmlSubString);
return html.ToString();
When I remove the html.Append(htmlSubString); the entire content of the textbox disappears...
I'm currently trying to use this code as a "filter", but it does not seem to work. As I've never worked with this part of coding before, it's hard for me to understand why this doens't work.
It would be great if someone could show me a revised version of my code or some website with an explanation so I can finally finish this app.
Also IF it is not too much of a problem, I'd like the images in the HTML to be converted into an image in XAML.
Anyone know how to do this? If not, thanks for reading anyway :wink: