Looking for a library to pretty print </br>, <a>, etc tags

As that title says, I'm looking for a library that can pretty print a string containing the mentioned tags, it should also be able to parse &amp; etc, Does such a library exist? Example:
Lorem ipsum dolor sit amet,</br> consectetur adipiscing elit.</br> <b>Aliquam</b> quis augue eu metus efficitur dapibus. Ut pharetra ullamcorper vestibulum
Lorem ipsum dolor sit amet,</br> consectetur adipiscing elit.</br> <b>Aliquam</b> quis augue eu metus efficitur dapibus. Ut pharetra ullamcorper vestibulum
should output something like this: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam quis augue eu metus efficitur dapibus. Ut pharetra ullamcorper vestibulum i tried googling it but i honestly don't know the proper keywords to find something useful
There are a couple of HTML pretty printing libraries. It looks like you're working with HTML. Not sure about </br> though as that doesn't exist in HTML, only <br>
any names? and yes i did mean <br>
You could probably do something similar to what I did with https://deno.land/x/stx https://deno.land/x/stx@0.1.1/syntax.ts?source#L9
interesting, ill take a look at some point ended up solving my issue with regex, since there are only two tags and there wasnt much else was trying to avoid using regex for it gonna live with the &amp things for now

Looking for more? Join the community!

Recommended Posts
Importing `puppeteer-cluster` from esm.sh causes `does not provide an export named 'default'` errorWhen importing `https://esm.sh/puppeteer-cluster@0.23.0` I get the following error: ``` error: UncauDeno linting not workingHello everyone, I enabled deno for a subpath in my project (`./supabase`) but unfortunately I'm not deno_pythonI'm trying to use Python with Deno with https://deno.land/x/python@0.2.7 What should I do to enable Deno VS Code plugin too aggressive in auto-completionI'm new to Deno and learning through some tutorials. I'm using VS Code and have the Deno plugin enabhow to exit all async command in deno task?consider this code ```json { "tasks": { "dev-server": "deno run --watch --allow-read --allow-nnode-pre-gyp install failing inside docker containerI'm building something that depends on a library with a native component (pulsar-client) and it doesSet a cookie in GET and retrieve in POSTbeen tryinig to do this for a couple hours now. Basically I want a way to return the user to the prWhat are newUserProps()I'm reading saaskit source, and I don't understand the point of `newUserProps()`. Why not just definRun a detached child process in DenoI'm looking at running a detached child process using Deno. Specifically I want run something like adeno info returns module not found``` deno info https://raw.githubusercontent.com/Murcul/norm/v1.3.0/src/mod.ts error: module could nocan't scrub video```<div className={"flex flex-col text-primary w-full lg:w-1/2 justify-center"}> <video classNamProper usage of `Deno.HttpClient`Hi! I'm creating an application which allows the internal use of HTTP proxies for certain tasks. In What's a good way to write tests for a script which does a bunch filesystem wrangling?As per the title - I have a script which, given a folder, does a bunch of moving and renaming. I'd lHow to access request body in Deno?Thank you.Syntax error when getting prop children Element but compilesIs this error important? How can I fix it? Should I fix it?Generate jUnit XML file from Deno TestsHey is it possible that the Deno Test suite generates a jUnit XML about the Test? So that I can dispHow to do callbacks with `deno_core`?Hello! I've been inspired to write an application after reading this article: https://deno.com/blog/How to ignore ts error when bundling?I run ``` deno bundle '.main.ts' fibery.js ``` and it refuses to work due to 41 errors. Mostly theyStreaming FormDataI have `Deno.serve` a HTML page with `<form enctype="multipart/form-data">` with a `file` input. IAstro - Vs code templateI am deploying this app using the deno deploy. My app's root is available at https://antilibrary-as