File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 2222 * along with this program. If not, see <http://www.gnu.org/licenses/>.
2323 *
2424 */
25+
26+
27+ function escapeHTML ( text ) {
28+ return text . toString ( )
29+ . split ( '&' ) . join ( '&' )
30+ . split ( '<' ) . join ( '<' )
31+ . split ( '>' ) . join ( '>' )
32+ . split ( '"' ) . join ( '"' )
33+ . split ( '\'' ) . join ( ''' )
34+ }
35+
2536( function ( ) {
2637 /**
2738 * @class OCA.Circles.FileList
124135 } ,
125136
126137 formatResult : function ( circle ) {
127- return circle . name ;
138+ return escapeHTML ( circle . name ) ;
128139 } ,
129140
130141 formatSelection : function ( circle ) {
131- return circle . name ;
132- //return OC.SystemTags.getDescriptiveTag(tag)[0].outerHTML;
142+ return escapeHTML ( circle . name ) ;
133143 } ,
134144
135145 sortResults : function ( results ) {
You can’t perform that action at this time.
0 commit comments