I am making an email client for blind people (well, legally blind anyways), and I am trying to render the HTML body for the emails, in a safe way, but without losing the style of the original content. I also want all the content to have increased the size of everything, especially the text.
Sanitize email html body and increase zoom level HTML
347 Views Asked by fevar At
1
There are 1 best solutions below
Related Questions in HTML-EMAIL
- Next.js: How to properly set image URL into HTML so image shows in email template
- Can we achieve z-index like functionality without using z-index for html email template?
- Python: Convert Markdown to html with Codeblocks like in stackoverflow
- How to make my Outlook fallback not show for my embedded video in HTML email?
- Preview text with subject in subject line
- QR code won't render when using react-email with NestJS
- How to remove spaces at the top and bottom of an HTML email?
- External Email html blocked in script php if HTML
- Limit height of a cell inside a table for an email in the Outlook desktop app
- OL Office 365 Dark for Windows Background Behind Text
- HTML: Outlook not rendering proper mail
- How to handle long words In email newsletter design for yahoo and AOL mail
- Outlook for Android "no app installed to open this" but it's just a link
- For HTML email development: How can I assign a different font-size for mobile and desktop views?
- Tracking pixel in HTML email not triggering API endpoint when opened
Related Questions in SVELTE
- How can I use svelte-canvas in sveltekit?
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- Svelte reactivity affected by initial variable value
- Non-blocking state update
- Data import issue for RSS in Svelte
- How can I import ActionData?
- Svelte how to have duplicate keys in a keyed each
- image-contain not fitting portrait image in parent container
- How can I update class on an element before the website loads (before onMount)?
- sveltekit adapter-node docker volume issue serving updated static files after build time
- Astro fails with svelte-testing-library
- How to reassign types to vite iso-imports
- New values not being loaded for .env for SvelteKit app
- Github Pages with sveltekit only shows the HTML contents of app.html
- Why is this Sevlte useSelector implementation not calling the derived function?
Related Questions in EMAIL-CLIENT
- Email to 365 group using graph
- split domain routing email
- Why do I keep getting this error using the gmailr package? (I attached code below the error)
- Implementing / registering an email sending client for windows
- How do I read emails from specific outlook folder in my Delphi application?
- How should an IMAP4rev2 client associate untagged responses for multiple pipelined IMAP commands?
- Issues with rendering html emails
- How sparkpost edits email "to" and "cc" header?
- Django - How to solve error "SIGPIPE: writing to closed pipe/socket/fd"
- Problem with sending file via socket in Base64
- HTML Email Not Stacking in Outlook for iOS
- How to get Azure Email Communication Service Connection String
- How to use geologica font in Send grid email template?
- How to fetch only the "text/plain" and "text/html" parts of an email message?
- Do web based email clients (e.g., Gmail) respect link prefetch?
Related Questions in SANITIZE
- i'm trying to sanitize but it doesn't work
- How to use ubsan for llvm .bc file
- Angular Image FIle Upload Issue: Receiving "C:\fakepath" and Sanitizing unsafe url
- Do I need to sanitise TIPTAP text editor in nextJS?
- Distribution of PDF Files with Active Content
- Sanitize multiple checkbox in Wordpress form
- Sanitizing a dynamic URL with Angular's DomSanitizer without the bypassSecurityTrustUrl
- Error installing nokogumbo gem with specific version
- Extract the mailto value and remove html tag if any in the string
- How to preg_match greater/less than number in php?
- java sanitize String, remove / escape all no language characters, various languages such as Chinese, Spanish, etc
- Replace "name" parameter from query in wordpress
- Sanitize email html body and increase zoom level HTML
- How to use DOMpurify?
- Angular sanitizing url to be used in an iframe's src
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I would recommend using an
iframewhich can prevent script execution via thesandboxattribute. You can add additional styling to set a specific root font size, though this may not work as expected depending on the mail's own styling.REPL
As an alternative to the font size, the whole frame can be scaled up using a transform, its size has to be reduced proportionally:
REPL
If you need more direct access to the the generated content, e.g. via events, you can instead sanitize the HTML using one of the various libraries out there (e.g.
xssorsanitize-html). The HTML can then be inserted using{@html ...}.To handle a click on a link, you can wrap the content in an element and handle the click there, checking whether the
targetwas a link element.(Sanitization omitted, because the mentioned packages are not compatible with the REPL.)
REPL