Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

58 lines (38 sloc) 1.321 kb
= !EntityMacro =
== Description ==
The !EntityMacro package returns HTML 4.01 numeric character entity references
from their corresponding names.
The character entity data is straight out of the DTD for HTML 4.01 so if there
are errors or ommissions you can blame it on the W3C, not me. ;-)
See: [ Character entity references in HTML 4]
for more information.
Calling the macro like so: `[[Entity(name)]]`, it returns the value. If no name
matches, it returns an empty string. Names are case-sensitive, in other words,
`aacute` is not the same code point as `Aacute`. Keyword syntax is also supported:
The macro is useful in any [WikiFormatting wiki formatted] page.
== Installation ==
python bdist_egg
cp dist/*.egg /trac/env/Project/plugins
== Configuration ==
Enable the macro in:
entity.* = enabled
You may have to restart you Web server.
== Examples ==
Both of these examples will return `»`.
== Source ==
* Browse the source at: [ GitHub].
* Public clone URL:
git clone git://
Jump to Line
Something went wrong with that request. Please try again.