File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2222 "react-dom" : " ^16.2.0" ,
2323 "react-select" : " ^1.0.0-rc.10" ,
2424 "react-tabs" : " ^2.2.1" ,
25+ "striptags" : " ^3.1.1" ,
2526 "tinycolor2" : " ^1.4.1"
2627 },
2728 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import React, {Component} from 'react';
44import classnames from 'classnames' ;
55import { CloseIcon , AngleDownIcon } from 'plotly-icons' ;
66import { unpackPlotProps , localize , containerConnectedContextTypes } from 'lib' ;
7+ import striptags from 'striptags' ;
78
89class Fold extends Component {
910 constructor ( props , context ) {
@@ -96,7 +97,7 @@ class Fold extends Component {
9697 < div className = "fold__top__arrow-title" >
9798 { arrowIcon }
9899 { icon }
99- < div className = "fold__top__title" > { name } </ div >
100+ < div className = "fold__top__title" > { striptags ( name ) } </ div >
100101 </ div >
101102 { deleteButton ( deleteContainer ) }
102103 </ div >
Original file line number Diff line number Diff line change 88 connectToContainer ,
99 supplyLayoutPlotProps ,
1010} from 'lib' ;
11+ import striptags from 'striptags' ;
1112
1213export const CanvasSize = connectToContainer ( UnconnectedNumeric , {
1314 modifyPlotProps : ( props , context , plotProps ) => {
@@ -276,7 +277,7 @@ function computeAxesRefOptions(axes) {
276277 const ax = axes [ i ] ;
277278
278279 // checking user data for title avoids default "Click to enter axis title"
279- const label = ax . _input . title || ax . _id ;
280+ const label = striptags ( ax . _input . title || ax . _id ) ;
280281 options [ i ] = { label, value : ax . _id } ;
281282 }
282283
You can’t perform that action at this time.
0 commit comments