Homec4science

utils: HTML ID washer

Authored by Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch> on Feb 19 2014, 10:00.

Description

utils: HTML ID washer

  • Add utility for cleaning strings such that they can be used as HTML IDs,

without generating, for example, jQuery issues. Such strings must start with
a lowercase letter and use only alpha-numeric characters. Unit tests included.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>

Details

Committed
kuncarJun 4 2014, 16:04
Parents
R3600:0dcf39a839bd: records: base variant of base.html
Branches
Unknown
Tags
Unknown

Event Timeline

Jiri Kuncar <jiri.kuncar@cern.ch> committed R3600:76c4589f22d8: utils: HTML ID washer (authored by Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>).Jun 4 2014, 16:04