1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Remove custom attribs as consumed

This commit is contained in:
Luke Barnard
2017-03-02 11:39:40 +00:00
parent 36795fa192
commit b951713f7f

View File

@@ -163,6 +163,7 @@ var sanitizeHtmlParams = {
/#[0-9a-fA-F]{6}/.test(customAttributeValue) /#[0-9a-fA-F]{6}/.test(customAttributeValue)
) { ) {
style += cssAttributeKey + ":" + customAttributeValue + ";"; style += cssAttributeKey + ":" + customAttributeValue + ";";
delete attribs[customAttributeKey];
} }
}); });