You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to copy a piece of styled text on Sweclockers (e.g., someone's signature). But since Sweclockers use BBCode, I'd need some function to convert from the HTML (which is easy to copy) back to BBCode (so that it can be rendered again).
Not sure if I'll spend the time implementing it, but just putting it here as an idea.
The text was updated successfully, but these errors were encountered:
Tried a bit with html2bbcode. It works fairly well in some cases, but since SweClockers generates some custom/non-semantic HTML, it can't handle e.g. quotes.
<divclass="bbQuote isExpanded"><divclass="quoteHead"><spanclass="quoteToggle" style="display: none;"></span><spanstyle="display: none;">Citat:</span><spanstyle="display: inline;"><span>Skrivet av </span><span>Alling</span><span>:</span></span></div><divclass="quoteFrame"><divclass="quoteContent"><pclass="bbParagraph"><span>Hej!</span></p></div><divclass="quoteLink" style="display: block;"><ahref="/forum/post/18536029">Gå till inlägget</a></div><divclass="quoteFade" title="Klicka för att visa hela citatet"></div></div></div><pclass="bbParagraph"><span>Halloj!</span></p>
Reversed BBCode from html2bbcode:
Citat:Skrivet avAlling:
Hej!
[url=/forum/post/18536029]Gå till inlägget[/url]
Halloj!
I'd like to copy a piece of styled text on Sweclockers (e.g., someone's signature). But since Sweclockers use BBCode, I'd need some function to convert from the HTML (which is easy to copy) back to BBCode (so that it can be rendered again).
Not sure if I'll spend the time implementing it, but just putting it here as an idea.
The text was updated successfully, but these errors were encountered: