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 22
22
"react-dom" : " ^16.2.0" ,
23
23
"react-select" : " ^1.0.0-rc.10" ,
24
24
"react-tabs" : " ^2.2.1" ,
25
+ "striptags" : " ^3.1.1" ,
25
26
"tinycolor2" : " ^1.4.1"
26
27
},
27
28
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import React, {Component} from 'react';
4
4
import classnames from 'classnames' ;
5
5
import { CloseIcon , AngleDownIcon } from 'plotly-icons' ;
6
6
import { unpackPlotProps , localize , containerConnectedContextTypes } from 'lib' ;
7
+ import striptags from 'striptags' ;
7
8
8
9
class Fold extends Component {
9
10
constructor ( props , context ) {
@@ -96,7 +97,7 @@ class Fold extends Component {
96
97
< div className = "fold__top__arrow-title" >
97
98
{ arrowIcon }
98
99
{ icon }
99
- < div className = "fold__top__title" > { name } </ div >
100
+ < div className = "fold__top__title" > { striptags ( name ) } </ div >
100
101
</ div >
101
102
{ deleteButton ( deleteContainer ) }
102
103
</ div >
Original file line number Diff line number Diff line change 8
8
connectToContainer ,
9
9
supplyLayoutPlotProps ,
10
10
} from 'lib' ;
11
+ import striptags from 'striptags' ;
11
12
12
13
export const CanvasSize = connectToContainer ( UnconnectedNumeric , {
13
14
modifyPlotProps : ( props , context , plotProps ) => {
@@ -276,7 +277,7 @@ function computeAxesRefOptions(axes) {
276
277
const ax = axes [ i ] ;
277
278
278
279
// 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 ) ;
280
281
options [ i ] = { label, value : ax . _id } ;
281
282
}
282
283
You can’t perform that action at this time.
0 commit comments