Hello friends, In this tutorial, we are going learn aura:unescapedHtml In Lightning Component. This is a very useful pre-built component which is used to render pre-formatted HTML

aura:unescapedHtml In Lightning Component Salesforce

aura:unescapedHtml is used to render pre-formatted HTML. The value assigned to this component will be rendered without modifying its content. For Example, sometimes you need to render HTML content that is generated on the server side and add it to dom. You must escape any HTML if necessary or your app might be exposed to security vulnerabilities.

The syntax for defining aura:unescapedHTML

To avoid XSS vulnerability you must sanitize value which you are going to assign this component.
Let’s see an example :

Step 1: Login to your Salesforce account and Open Developer Console.

Step 2: Create a Lightning Component called LightningQuickActionExample. Write the following code in:

UnescapedHTML.cmp:

UnescapedHTML.css

UNEScapedHTML.Controller.Js

TEST THE COMPONENT.

Create a New Lightning Application and replace the following code.

Output:

aura:unescapedHtml

View More:

Conclusion:

I hope you would love this post. Please don’t hesitate to comment for any technical help. Your feedback and suggestions are important to us.

Thank you.

132 Comments

  • You made some good points there. I checked on the web to find out more about the issue and found most people will go along with your views on this web site.

  • I simply want to mention I am just newbie to weblog and absolutely enjoyed you’re blog site. More than likely I’m going to bookmark your website . You really come with great articles. Appreciate it for sharing with us your web site.

  • I have realized some essential things through your website post. One other subject I would like to mention is that there are plenty of games in the marketplace designed especially for preschool age youngsters. They involve pattern recognition, colors, pets, and designs. These normally focus on familiarization as opposed to memorization. This helps to keep children occupied without having a sensation like they are learning. Thanks

  • Thanks for revealing your ideas. I might also like to mention that video games have been ever before evolving. Modern tools and inventions have helped create realistic and active games. These kind of entertainment video games were not as sensible when the concept was first of all being used. Just like other areas of technological know-how, video games also have had to evolve by way of many years. This itself is testimony on the fast growth and development of video games.

  • OK first take a good look at your self. What do you like what do you not like so much. Work on that which you do not like. But do not listen to other people their opinions do not matter only yours does. Work on having the attitude that this is who you’re and if they don’t like it they can go to hell.

  • Your style is really unique in comparison to other people I’ve read stuff from. Thank you for posting when you have the opportunity, Guess I will just book mark this blog.

  • I’m very pleased to find this site. I wanted to thank you for ones time due to this wonderful read!! I definitely enjoyed every bit of it and i also have you book-marked to see new things on your website.

  • I have learned some points through your site post. One other thing I would like to convey is that there are several games in the marketplace designed specifically for preschool age children. They include pattern identification, colors, animals, and designs. These commonly focus on familiarization instead of memorization. This makes little kids engaged without having a sensation like they are studying. Thanks

  • Excellent post! We will be linking to this particularly great content on our site. Keep up the great writing.

  • Very good article! We are linking to this particularly great content on our site. Keep up the great writing.

  • Sapid Agency is a Search Engine Optimization company in New York City that provides SEO Services. Their proprietary SEO strategies help struggling websites and aspiring business owners to rank their websites higher in multiple search engines like Google , Yahoo and Bing. They provide local and gmb map ranking for businesses in NYC and many other local areas. Find more at https://www.sapidagency.com/ @ 145 E 57TH NEW YORK, NY 10022, USA, +1 971 341 5608 USA

  • This is the perfect site for anybody who wishes to understand this topic. You realize a whole lot its almost tough to argue with you (not that I personally will need to…HaHa). You definitely put a fresh spin on a subject that has been written about for ages. Excellent stuff, just great.

  • Howdy! This blog post could not be written any better! Looking through this article reminds me of my previous roommate! He always kept talking about this. I will forward this information to him. Fairly certain he’ll have a good read. Thanks for sharing!

  • Aw, this was a really nice post. Taking a few minutes and actual effort to create a superb article… but what can I say… I hesitate a whole lot and never seem to get nearly anything done.

  • I absolutely love your site.. Excellent colors & theme. Did you make this website yourself? Please reply back as I’m wanting to create my very own site and would like to know where you got this from or what the theme is called. Thank you!

  • I blog quite often and I truly thank you for your information. Your article has really peaked my interest. I will take a note of your website and keep checking for new information about once a week. I subscribed to your RSS feed too.

  • Howdy! This article could not be written any better! Reading through this article reminds me of my previous roommate! He constantly kept talking about this. I will send this post to him. Fairly certain he’s going to have a good read. Thank you for sharing!

  • I?m pleased, I must claim. Really seldom do I experience a blog that?s both instructional and entertaining, as well as let me inform you, you have hit the nail on the head. Your concept is impressive; the issue is something that not enough individuals are speaking intelligently around. I am very pleased that I came across this in my search for something associating with this.

  • I merely have to notify you that I am new to blog posting and extremely admired your post. More than likely I am most likely to store your blog post . You really have memorable article materials. Truly Appreciate it for sharing with us your url webpage

  • Hello, Neat post. There is a problem along with your web site in web explorer, would check this… IE nonetheless is the market chief and a big portion of other people will leave out your fantastic writing because of this problem.

  • Hello there! Do you use Twitter? I’d like to follow you if that would be okay. I’m undoubtedly enjoying your blog and look forward to new updates.

  • Good blog you have got here.. It’s difficult to find high-quality writing like yours these days. I really appreciate people like you! Take care!!

  • May I just say what a comfort to find someone who really knows what they are talking about over the internet. You certainly realize how to bring an issue to light and make it important. More and more people must read this and understand this side of your story. I was surprised that you are not more popular given that you certainly have the gift.

  • I’m impressed, I have to admit. Rarely do I encounter a blog that’s equally educative and engaging, and let me tell you, you have hit the nail on the head. The problem is something too few people are speaking intelligently about. I’m very happy I came across this in my search for something relating to this.

  • Faytech North America is a touch screen Manufacturer of both monitors and pcs. They specialize in the design, development, manufacturing and marketing of Capacitive touch screen, Resistive touch screen, Industrial touch screen, IP65 touch screen, touchscreen monitors and integrated touchscreen PCs. Contact them at http://www.faytech.us, 121 Varick Street, New York, NY 10013, +1 646 205 3214.

  • It’s mostly extremely difficult to see well-advised people on this matter, still, you appear like you are familiar with the things that you’re writing about! Bless You

  • Way cool! Some very valid points! I appreciate you penning this write-up plus the rest of the website is very good.

  • Gday here, just became alert to your post through yahoo, and realized that it’s genuinely educational. I’ll truly appreciate should you decide carry on these.

  • I just intend to share it with you that I am new to blogging and incredibly cherished your work. Very likely I am going to bookmark your blog post . You absolutely have superb article material. Get Pleasure From it for sharing with us your main website article

  • It’s nearly extremely difficult to come across well-educated americans on this area, but you look like you fully grasp the things that you’re posting on! Thanks A Lot

  • Thanks for revealing your ideas. I might also like to convey that video games have been at any time evolving. Modern technology and enhancements have served create sensible and fun games. Most of these entertainment games were not that sensible when the concept was being tried. Just like other kinds of technologies, video games also have had to advance as a result of many years. This is testimony on the fast progression of video games.

  • Sapid Agency is a Search Engine Optimization company in New York City that provides SEO Services. Their proprietary SEO strategies help struggling websites and aspiring business owners to rank their websites higher in multiple search engines like Google , Yahoo and Bing. They provide local and gmb map ranking for businesses in NYC and many other local areas. Find more at https://www.sapidagency.com/ @ 145 E 57TH NEW YORK, NY 10022, USA, +1 971 341 5608 USA

  • I know this web page gives quality depending articles or reviews and extra data, is there any other web page which offers such data in quality?|

  • You’ll find it mostly unattainable to find well-advised parties on this theme, still, you come across as like you comprehend which you’re writing on! Many Thanks

  • I merely need to share it with you that I am new to posting and extremely loved your work. More than likely I am prone to bookmark your blog post . You literally have great article material. Get Pleasure From it for expressing with us your main website article

  • Hey there would you mind stating which blog platform you’re using? I’m looking to start my own blog in the near future but I’m having a hard time deciding between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design and style seems different then most blogs and I’m looking for something unique. P.S Sorry for getting off-topic but I had to ask!|

  • MetroClick specializes in building completely interactive products like Photo Booth for rental or sale, Touch Screen Kiosks, Large Touch Screen Displays , Monitors, Digital Signages and experiences. With our own hardware production facility and in-house software development teams, we are able to achieve the highest level of customization and versatility for Photo Booths, Touch Screen Kiosks, Touch Screen Monitors and Digital Signage. Visit MetroClick in NYC at http://www.metroclick.com/ or , 121 Varick St, New York, NY 10013, +1 646-843-0888.

  • That is a very good tip particularly to those fresh to the blogosphere. Brief but very precise information… Many thanks for sharing this one. A must read article!

  • Hello here, just became conscious of your webpage through Google, and realized that it’s pretty beneficial. I’ll be grateful in the event you persist such.

  • Hey! I just wanted to ask if you ever have any problems with hackers? My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no back up. Do you have any methods to protect against hackers?|

  • Hello There. I found your blog using msn. That is a really neatly written article. I’ll be sure to bookmark it and come back to read more of your useful information. Thank you for the post. I will certainly comeback.|

  • Hi! I just wish to provide a massive thumbs up for the fantastic info you have below on this post. I will be coming back to your blog site for even more quickly.

  • Aw, this was a really good post. In idea I wish to place in creating such as this in addition? taking time as well as actual initiative to make an excellent short article? but what can I say? I procrastinate alot and by no means appear to get something done.

  • Can I simply state what a relief to locate someone who actually recognizes what theyre talking about online. You absolutely understand just how to bring a problem to light and make it important. More individuals need to read this and understand this side of the story. I angle think youre not much more prominent because you absolutely have the present.

  • A lot of thanks for each of your efforts on this blog. My mum really loves going through investigation and it’s really easy to see why. We all know all concerning the dynamic medium you give insightful tips and hints via the website and therefore invigorate response from some others on the theme plus our simple princess is now becoming educated a great deal. Enjoy the remaining portion of the year. You’re the one conducting a first class job.

  • Asking questions are truly fastidious thing if you are not understanding anything fully, except this post gives fastidious understanding even.|

  • When I initially commented I clicked the -Alert me when brand-new remarks are included- checkbox and now each time a comment is added I get four emails with the exact same remark. Exists any way you can remove me from that service? Thanks!

  • An intriguing discussion is worth comment. I assume that you should compose extra on this subject, it might not be a taboo subject yet normally individuals are not enough to talk on such subjects. To the next. Thanks

  • This is the appropriate blog for anyone who intends to find out about this topic. You understand a lot its nearly tough to suggest with you (not that I actually would want?HaHa). You absolutely put a brand-new spin on a topic thats been blogged about for years. Excellent stuff, just great!

  • I discovered your blog website on google and also examine a few of your very early posts. Continue to keep up the excellent operate. I just additional up your RSS feed to my MSN Information Viewers. Looking for ahead to finding out more from you in the future!?

  • Oh my benefits! an impressive short article guy. Thank you However I am experiencing concern with ur rss. Don?t recognize why Not able to subscribe to it. Is there anyone obtaining identical rss trouble? Anyone who understands kindly react. Thnkx

  • Gday there, just turned out to be receptive to your blogging site through Google, and discovered that it’s genuinely good. I’ll appreciate if you continue on this approach.

  • You made some respectable factors there. I viewed the internet for the issue as well as discovered most people will certainly go along with with your site.

  • I really want to reveal to you that I am new to blogging and undeniably loved your article. Very possible I am most likely to remember your blog post . You literally have memorable article blog posts. Love it for telling with us your main domain page

  • Hello there! I just want to give a massive thumbs up for the terrific details you have right here on this post. I will certainly be coming back to your blog for even more quickly.

  • Can I simply say what a relief to find someone that actually recognizes what theyre speaking about on the net. You definitely know exactly how to bring an issue to light as well as make it vital. Even more people require to read this and recognize this side of the tale. I cant think youre not a lot more prominent since you certainly have the present.

  • The next time I read a blog, I really hope that it does not dissatisfy me as much as this set. I suggest, I know it was my option to review, yet I actually believed youd have something interesting to state. All I hear is a lot of grumbling regarding something that you can fix if you werent as well busy trying to find interest.

  • It?s difficult to locate well-informed individuals on this subject, yet you seem like you understand what you?re discussing! Many thanks

  • I’m truly enjoying the design and layout of your blog. It’s a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a developer to create your theme? Great work!|

  • There are some interesting points in this post but I don?t know if I see every one of them facility to heart. There is some validity but I will take hold viewpoint till I check out it additionally. Great post, thanks and also we desire much more! Contributed to FeedBurner also

  • Oh my goodness! Impressive article dude! Thanks, However I am encountering issues with your RSS. I don’t understand the reason why I am unable to subscribe to it. Is there anyone else getting identical RSS problems? Anybody who knows the answer will you kindly respond? Thanks!!

  • It’s perfect time to make a few plans for the long run and it’s time to be happy. I’ve learn this submit and if I could I wish to suggest you some attention-grabbing issues or advice. Maybe you could write next articles regarding this article. I want to learn even more things about it!|

  • I uncovered your blog website on google as well as examine a few of your very early articles. Continue to keep up the great run. I simply additional up your RSS feed to my MSN News Reader. Seeking forward to finding out more from you later on!?

  • Its like you read my mind! You appear to know a lot about this, like you wrote the book in it or something. I think that you could do with a few pics to drive the message home a bit, but instead of that, this is wonderful blog. A great read. I’ll certainly be back.|

  • Hello there, You have done an incredible job. I will definitely digg it and for my part recommend to my friends. I am sure they will be benefited from this website.|

  • There are definitely a great deal of details like that to consider. That is a wonderful point to bring up. I provide the ideas over as general motivation but clearly there are questions like the one you raise where the most crucial point will be operating in straightforward good faith. I don?t know if ideal methods have actually arised around things like that, but I make certain that your task is clearly determined as a fair game. Both boys and also women feel the effect of just a moment?s enjoyment, for the rest of their lives.

  • The following time I review a blog, I really hope that it does not disappoint me as much as this one. I mean, I understand it was my choice to read, but I really assumed youd have something fascinating to claim. All I listen to is a bunch of yawping regarding something that you can deal with if you werent also active searching for attention.

  • Excellent blog here! Also your web site loads up fast! What host are you using? Can I get your affiliate link to your host? I wish my web site loaded up as quickly as yours lol|

  • I found your blog website on google and also examine a few of your early messages. Remain to maintain the great run. I simply extra up your RSS feed to my MSN Information Viewers. Looking for forward to finding out more from you in the future!?

  • These are in fact fantastic ideas in on the topic of blogging. You have touched some fastidious points here. Any way keep up wrinting.|

  • Thank you for sharing your thoughts. I really appreciate your efforts and I am waiting for your next write ups thank you once again.|

  • I just couldn’t leave your site before suggesting that I actually enjoyed the usual info an individual supply in your guests? Is going to be back frequently in order to check up on new posts|

  • I?m amazed, I must state. Truly rarely do I encounter a blog that?s both educative as well as amusing, and also let me tell you, you have struck the nail on the head. Your concept is exceptional; the problem is something that inadequate individuals are talking wisely around. I am extremely delighted that I stumbled across this in my search for something connecting to this.

  • It?s tough to locate well-informed individuals on this topic, however you sound like you recognize what you?re speaking about! Thanks

  • Hello to every body, it’s my first pay a quick visit of this blog; this web site carries amazing and truly excellent material in favor of readers.|

  • I am often to blog writing and i actually value your material. The post has truly peaks my rate of interest. I am mosting likely to bookmark your site as well as maintain checking for new details.

  • I got this website from my friend who informed me about this site and at the moment this time I am browsing this web page and reading very informative posts at this time.|

  • Hi, this weekend is nice for me, as this point in time i am reading this impressive educational article here at my house.|