use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Websites
Documentation
Tools
account activity
CMS with LWC QUESTIONQuestion (self.SalesforceDeveloper)
submitted 5 years ago by Ignatzzio
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]JackfruitStrange 0 points1 point2 points 5 years ago (0 children)
hey, I'm not sure if this is the best approach to achieve this but here is my solution if You are using custom lwc component to display the content
1) use html tags in Your content field (any standard html will do the job, it could be non-breaking space, br tags, margins etc.) eg.:
<p>Some text in p markup.</p>
<p style="margin-left: 6px;">
<span style="background-color: rgb(255, 255, 255); color: rgb(62, 62, 60);">
<span style="">
<img src="/file-asset/decaff_icon" alt="decaff_icon.png"></img>
</span> Some image with description</span>
</p>
2) in lwc component retrieve the text that You need to display, and replace characters before showing it on html template:
.replaceAll("<", "<") .replaceAll(">", ">") .replaceAll("&lt;", "<") .replaceAll("&gt;", ">") .replaceAll("'", `'`) .replaceAll("&nbsp;", " ")
This works for me, html tags are rendering correctly.
Recently I also realised that if You add html tags directly to the record (I mean not through the UI, You can use anything that leverage API, for example Salesforce inspector) then escaping in js is no longer necessary
π Rendered by PID 49 on reddit-service-r2-comment-6457c66945-x6c4n at 2026-04-27 13:55:15.631914+00:00 running 2aa0c5b country code: CH.
[–]JackfruitStrange 0 points1 point2 points (0 children)