/*
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2015-2015 - Scilab Enterprises - Clement DAVID
- * Copyright (C) 2017 - ESI Group - Clement DAVID
+ * Copyright (C) 2017-2018 - ESI Group - Clement DAVID
*
* Copyright (C) 2012 - 2016 - Scilab Enterprises
*
import org.scilab.modules.xcos.io.HandledElement;
import org.xml.sax.Attributes;
+import com.mxgraph.util.mxUtils;
+
class BlockHandler implements ScilabHandler {
private static Pattern validCIdentifier = null;
if (value != null && validCIdentifier.matcher(value).matches()) {
saxHandler.controller.setObjectProperty(uid, kind, ObjectProperties.DESCRIPTION, value);
}
+ if (value != null) {
+ // escape any html style / head
+ value = mxUtils.getBodyMarkup(value, false);
+ }
String style = atts.getValue("style");
if (style != null) {