constlineChecker=(line,isFirstLine)=>{if(!line?.trim())return'<br/>'consttag=isFirstLine?'h1':'p'return`<${tag}>${line}</${tag}>`};// Trim is needed to handle newlines & whitespaceslineChecker('\n',false)// <br/>
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What about this one?