HOME | DD

kemayo — Escaping your troubles with bcode
#deviantart #howto #html #markup #tutorial
Published: 2014-10-11 20:42:46 +0000 UTC; Views: 11840; Favourites: 9; Downloads: 0
Redirect to original
Description body div#devskin0 hr { }

A not uncommon source of requests for help with journals/comments/etc on DeviantArt is:

How can I talk about HTML markup without all that stuff you try to do to help me with markup getting in the way? I don't want things to magically become markup, or get turned into links, or anything like that.

The solution to your problems is the completely made up and non-standard tag:

Anything inside a segment will be escaped and URLs won't become links. (The only thing difficult to talk about is itself.)

For instance:

Was literally: 

Editing to add: this may get a little messed up if you're using Writer and you expect it to work across paragraphs. It'll work most-reliably if you're using the raw HTML input via ctrl-e.

Related content
Comments: 21

UraniumTheElement [2015-06-12 12:12:10 +0000 UTC]

This is so awesome!

This is the AWESOMEST HTML tip I've ever seen.

👍: 0 ⏩: 0

exarobibliologist [2014-10-21 20:51:10 +0000 UTC]

Hot damn! This is the best HTML tip I've ever seen!
I can't even begin to tell you how many wild methods I've used to escape a URL. I am so going to use this!!

👍: 0 ⏩: 0

TheBamas [2014-10-13 20:30:53 +0000 UTC]

The second reson is the html code isn't fuly secured so there is big issues with security with it a dell but is also more secured to use the later method with is easier and more secured to use.

👍: 0 ⏩: 1

kemayo In reply to TheBamas [2014-10-18 00:56:52 +0000 UTC]

Don't fret; we do a lot of screening of what's allowed to avoid security issues.

👍: 0 ⏩: 1

TheBamas In reply to kemayo [2014-10-18 17:12:39 +0000 UTC]

he whoever I know there are lot of security isuess here 

👍: 0 ⏩: 1

kemayo In reply to TheBamas [2014-10-21 19:33:54 +0000 UTC]

Well, if you know of any, please feel free to tell me and they'll get fixed!

👍: 0 ⏩: 1

TheBamas In reply to kemayo [2014-10-21 20:15:13 +0000 UTC]

I own a own webb site I had made Solo so I know what Im taking about 

👍: 0 ⏩: 1

kemayo In reply to TheBamas [2014-10-24 21:07:43 +0000 UTC]

I'm going to read that as you saying "I don't actually know of any security issues on DeviantArt", 'kay?

👍: 0 ⏩: 1

TheBamas In reply to kemayo [2014-10-24 23:07:40 +0000 UTC]

becurse is isnt alway visseble for the blink of your eye but trust me it will be then it get noticed they someone try t´do something and it just refuse to do as it shukd 

👍: 0 ⏩: 0

BoffinBrain [2014-10-13 01:20:15 +0000 UTC]

HTML already has a method of doing this... < and >

By adding an imaginary tag called bcode, you end up with a recursive problem of being unable to describe bcode tags themselves.

👍: 0 ⏩: 2

kemayo In reply to BoffinBrain [2014-10-13 17:45:00 +0000 UTC]

Oh, I should say, this isn't something new I've added. This has been around for somewhere over 8 years at this point, attaining the coveted status of "legacy feature that nobody knows about".

👍: 0 ⏩: 2

electricjonny In reply to kemayo [2014-10-15 22:39:10 +0000 UTC]

Wait, is old?   I thought it only existed in the chat system   I've used it there a lot there, mostly to escape things and not-parse them (like you describe here) but also since it keeps the whitespace, since it's really a

 tag all in one, while escaping <, right?  Doesn't writer/writing comments keep the whitespace, finally, without bcode?

Anyway, yeah the recursive escaping you have to do is just part of the fun of HTML, right?  I'm pretty used to it by now   But man, the bcode tag is pretty useful   Glad I know about it now.

👍: 0 ⏩: 1

kemayo In reply to electricjonny [2014-10-17 20:16:13 +0000 UTC]

The formatting in the chat system is largely the same as the formatting everywhere else, after all...

Comments/journals don't need the pre side of it, I admit.

👍: 0 ⏩: 0

BoffinBrain In reply to kemayo [2014-10-15 17:23:47 +0000 UTC]

Undocumented features are awesome, aren't they? A bit like CTRL+E on the WYSIWIG editor.

👍: 0 ⏩: 1

kemayo In reply to BoffinBrain [2014-10-17 20:17:44 +0000 UTC]

We have to do something to keep the power users happy, right? (Another tip: paste by doing cmd-shift-v instead of just cmd-v, and you won't have deviation links turned into thumbs, or lists marked up with asterisks turned into proper HTML lists...)

👍: 0 ⏩: 0

kemayo In reply to BoffinBrain [2014-10-13 17:42:56 +0000 UTC]

Well, one might describe with said escapes.

Anyway, the escaping of tags is a secondary benefit. The real purpose is to not do the magic stuff we do on top of regular HTML. So I can use it to :D or talk about :thumb487831638: codes, or mention URLs (like in that example img tag) without them being turned into links.

👍: 0 ⏩: 1

BoffinBrain In reply to kemayo [2014-10-15 17:23:03 +0000 UTC]

OK, that's a fair enough reason. Having a way to stop parsing of other codes is something long-due.

👍: 0 ⏩: 0

tayleaf [2014-10-12 14:30:31 +0000 UTC]


WOW OMG I'M SO HAPPY TO FIND THIS! YOU ARE AMAZING KEMAYO :U THIS IS SO COOL

👍: 0 ⏩: 0

phoenixleo [2014-10-11 22:24:30 +0000 UTC]

Escaping your troubles with bcode wanted link the first time o_O

👍: 0 ⏩: 1

kemayo In reply to phoenixleo [2014-10-12 05:08:55 +0000 UTC]

Writer can get a bit confused by tags that cross linebreaks, because block elements.

👍: 0 ⏩: 1

phoenixleo In reply to kemayo [2014-10-16 18:55:43 +0000 UTC]

Wish there was an option. :C

👍: 0 ⏩: 0