In my code I am trying to introduce a line break after every 11 characters. I have an angular filter for the same which works just fine. The problem is that jsHint is throwing a warning "Bad Escaping" for every <br\>
that I have put in. How to suppress the warning for "Bad Escaping" for jshint.
Note: I tried to replace the <br\>
with a "\n" but "\n" is not working properly and was displaying unpredictable behavior. Hence kindly do not suggest to replace the same. Please see the code snippet below to observe how I am using <br\>
.
if(labelArrayParts.length === 0){
breakPart = value.slice(0,10) + "-" + "<br\>";
leftPart = value.slice(10,value.length);
labelArrayParts[i] = breakPart;
labelArrayParts[i+1] = leftPart;
}
`. – Nathan MacInnes Jan 20 '15 at 09:34