The Tridecadal Korean (astralblue) wrote,
The Tridecadal Korean
astralblue

HTML OTL of the Day

The official Snort documentation, section 3.5 “Payload Detection Rule Options” ]

Dear whoever wrote the documentation,

You can embed literal “<” and “>” characters in HTML by using “&lt;” and “&gt;” HTML character entities.  For more entities like this, please see Character entity references in HTML 4 ], chapter 24 of HTML 4.01 Specification, W3C Recommendation 24 December 1999.

Seriously, that will save you a lot of time and effort as you won't have to open your favorite paint program just to create a GIF with a single letter in it.

Yours truly,
Eugene

P.S.  HTML entities used in this journal entry, and a couple of useful others (note that these are case-sensitive):

&lt;
&gt;

The less-than/greater-than signs (“<”/“>”).

&amp;

The ampersand sign (“&”)

&nbsp;

A space character, exempt from word wrapping and line breaking.

This is handy in emotes like “t(-_ -t)”.

It is also used to introduce a double-space at the end of a sentence; instead of two consecutive spaces, which will be condensed into one in HTML, use “&nbsp; ”, that is, replace the first space with &nbsp;.

“nbsp” stands for non-breaking space.

&quot;

The neutral double quote (“"”)

&lsquo;
&rsquo;

The opening/closing single quotes.

&ldquo;
&rdquo;

The opening/closing double quotes.

&middot;

The middle dot (“·”).

&hellip;

The horizontal ellipsis (“…”, a.k.a. “dot dot dot”).

&mdash;

The em dash (“—&rdquo).

Use this, instead of a double minus (“--”), in pairs in order to introduce a parenthetic—like this—text.

Note: There is a separate, different typographic sign, called horizontal bar or quotation dash (“―”), which looks just like an em dash but is used instead to lead a line that introduces, for example, the source of a quote like:

Ev'lyone's a rittle bit lacist!

Christmas Eve, from Avenue Q

Unfortunately there's no SGML character entity name defined for the horizontal bar, so we have to use its Unicode code position number instead: “&#8213;”.

&euro;
&cent;
&pound;
&yen;

The euro/cent/pound/yen signs (“€”/“¢”/“£”/“¥”).

&copy;
&trade;
&reg;

The copyright/trademark/registered trademark signs (“©”/“™”/“®”).

&larr;
&darr;
&uarr;
&rarr;

Teh dee dee are (“←”/“↓”/“↑”/“→”).

&lArr;
&dArr;
&uArr;
&rArr;

Teh dee dee are, OMG doubles (“⇐”/“⇓”/“⇑”/“⇒”).

&harr;
&hArr;

The single/double left-right arrows (“↔”/“⇔”).

&spades;
&hearts;
&diams;
&clubs;

The four card suit symbols (“♠”/“♥”/“♦”/“♣”).

Subscribe

  • Does Anyone Know…

    Does anyone know the title of this one song you can listen to here? I'm about to fall in love with it…. +_+ (If you can figure out what the…

  • Sound Engineer: Bridging Musician And Audience

    From (the other) Eugene's blog: 표현하고자 하는 욕구가 가득찬, 숙명처럼 아낌없이, 다 펼쳐놓는 사람들이 예술가면, 그 공감대에 젖고싶어, 공감대안에서 또 자신의 자아를 찾고자 하는 욕구의 사람들이 모여든다. 음악을 표현하고,…

  • Sky – Forever

    I posted about it a long time ago, but I'll post it again, because it's the best K-pop music video ever.

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 8 comments