📜 ⬆️ ⬇️

Done - Jevix 1.0


Jevix is an automatic application of typing rules (typography) developed by TM ™ for own projects (Habr, Kadabra, Dribbler), open source, endowed with the ability to unify HTML / XML markup, control the list of valid tags and attributes and prevent possible XSS -attacks in the code of documents.

Due to the catastrophic lack of time, in spite of my promises, the version 1.0 code is posted only today. But he still went out! And along with the correction of yesterday's habrabag with a strikethrough of the text.

Jevix is now available on google code . I didn’t quarrel with the Juks - the author of the perl-version (if anyone thought that) - it's just easier for me to work with the google code.

For writing a test example, many thanks to vaart . Without him there would be nothing.
')
What changes have occurred (copy-paste from source):
 1.00
  + Fixed a bug with closing tags leading to the creation of an unpaired tag destroying the layout.
 1.00 RC2
  + Small code cleaning
 1.00 RC1
  + Added Jevix :: RUS character class to define Russian characters. 
  + Auto-space after punctuation for Cyrillic only 
  + Added cfgSetTagNoTypography () setting that disables typography in the specified tag
  + Slightly altered quotation processing algorithm.  He became more strict
  + The 33-inch sign doesn’t turn into an opening quote anymore. However, my 24-monitor monitor doesn’t digest the parser.
 0.99
  + Extended functionality for checking tag attributes: 
    attribute type can be specified ('colspan' => '# int', 'value' => '#text')
    in Jevix, by default, an array of types is defined for several standard attributes (src, href, width, height)
 0.98
  + Extended functionality for checking tag attributes: 
    you can set a list of possible attribute values ​​('align' => array ('left', 'right', 'center'))
 0.97
  + Normal quotes are saved as "e; if they were so written
 0.96
  + Added allowed protocols https and ftp for links (a href = "https: // ...)
 0.95
  + Fixed typography? .. and! .. (two dots at the end no longer turn into three dots)
  + The automatic addition of a space after the dot for the Latin alphabet was disabled, which made it impossible to write 
    index.php or .htaccess
 0.94
  + Added setting auto add tag parameters.  Not rel = "nofolow" for links. 
    Thanks Myroslav Holyak (vbhjckfd at gmail.com)


PS I don't know a damn thing about licenses. Please advise. I would like the code to be used both in open source and in commercial projects with the possibility of modifying the code, but with indication of authorship
PPS If you want to join the project and improve it or work on the documentation - contact inbox

Source: https://habr.com/ru/post/44423/


All Articles