+9
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Sanitises title, removing any unwanted characters that might break XML.
|
||||
*
|
||||
* This is a very basic funciton, not full parser.
|
||||
*/
|
||||
function sanitiseTitleAttribute(content) {
|
||||
return content.replace(/[<>&]+/g, "");
|
||||
}
|
||||
export { sanitiseTitleAttribute };
|
||||
Reference in New Issue
Block a user