Hi In our application, we need to display the emails read from uses inbox and display them in UI. Some of the emails are not formatted properly.
When try to display, it displays message Error: [$sanitize:badparse] The sanitizer was unable to parse the following block of html: <a href="http://www.facebook.com/AngloINFO.Bangkok" "_blank"="" target="_blank"><img src=" http://apptestemaildata.sirahu.net/39844%3A0%3A1438?&AWSAccessKeyId=AKIAJEI7M6ZBESTUUDIA&Expires=1464136404&Signature=L%2BVDzGy61V4QdiP8POQpplfnj7Y%3D" alt="Join us on Facebook" border="0" width="144" height="30"></a> here is that html <a href="http://www.facebook.com/AngloINFO.Bangkok" *"_blank"="" *target="_blank"><img src="cid:hfacebook.gif" alt="Join us on Facebook" border="0" width="144" height="30"></a> The incoming emails are unpredictable and we need to display in any case. before using in ng-bind-html we are using like this too message = $sce.getTrustedHtml($sce.trustAsHtml(message)); and in html we render like <div ng-bind-html="message"> </div> But it displays the above sanitize error. How to over come this? Some of the solutions may be 1. while pulling from user inbox itself, parse html and correct it by using some java libraries like Jsoup, HtmlCleaner - but as the email text is unpredictable, we may lose some formatting etc.. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.Title: AngloINFO Newsletter
Living the Expat LifeIt takes a special kind of person to move away from home to live in a new country. OK, so we may be a little biased but we at AngloINFO like to think that our members are just that little bit more adventurous and open-minded than the average person. Immersing yourself in a completely new culture is undeniably a challenge and frankly, it’s not one that everyone is up to. It takes a considerable amount of courage to step out of your comfort zone and leave behind the familiar, so AngloINFO expats… we salute you! Opportunities for Adventure!Why do people move overseas? Perhaps it’s to find a better quality of life, to learn a new language, to broaden their children’s life experience, to earn more on an overseas assignment… maybe just to get out of the day-to-day grind. These are all obvious benefits, but there are many other reasons why being an expat is simply… well, great! We love hearing about the fascinating lives of our members and we’ve got dozens of expat bloggers from all over the world posting in our blogs section. Here you can read about everything from eating in a “babushka’s” restaurant in Baku to finding hidden châteaux in Paris… and a lot more besides! You can get news and views relating to expat life around the globe, including tips for looking after your money and property in our World blog series. In our Meet the Expat feature we introduce you to fellow expats who share a little of their own personal experiences and offer advice and tips for settling into a life overseas. If you want to find out what’s happening in your local expat community, or if you want to ask a question or start a conversation thread, check out our Discussions forum – it’s a great way to connect with other people in your area. Featured Advertiser
Now Happening
Why am I getting this email?Either: | |||||||||||||||
|
