mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-29 19:32:46 +03:00
ab6c6d959d
- Δημιουργία script για παραγωγή documention του κώδικα - Μικρές διορθώσεις
21 lines
596 B
JavaScript
21 lines
596 B
JavaScript
/**
|
|
@overview Escape HTML tags in descriptions.
|
|
@module plugins/escapeHtml
|
|
@author Michael Mathews <micmath@gmail.com>
|
|
*/
|
|
|
|
|
|
exports.handlers = {
|
|
/**
|
|
Translate HTML tags in descriptions into safe entities.
|
|
Replaces <, & and newlines
|
|
*/
|
|
newDoclet: function(e) {
|
|
if (e.doclet.description) {
|
|
e.doclet.description = e.doclet.description
|
|
.replace(/&/g,'&')
|
|
.replace(/</g,'<')
|
|
.replace(/\r\n|\n|\r/g, '<br>');
|
|
}
|
|
}
|
|
};
|