Cheerio .html() setter does not seem to accept functions (docs & source).
I also added whitespaces handling for pre (just like textarea). It was useful for my use case which contains indented code. Was it related to the comment I removed : // TODO put white space helper back in?
The whitespace processing was not working :-(
Cheerio
.html()
setter does not seem to accept functions (docs & source).I also added whitespaces handling for pre (just like textarea). It was useful for my use case which contains indented code. Was it related to the comment I removed :
// TODO put white space helper back in
?