+ 5

Code playground's console.log cannot print '<' character?

Why does the program cannot print '<' on console.og? And the characters after '<' are disappear from console.log, and the next console.log message is concatenated with the first console.log message (no more line break). These console.log messages are working fine on browser console panel. https://code.sololearn.com/WejhbhnEUAC2

28th Apr 2017, 4:49 AM
CalviŐ˛
CalviŐ˛ - avatar
8 Answers
+ 8
@Calvin I'm using mobile app version 1.3.3. Maybe a problem with desktop site C.Playground?
28th Apr 2017, 5:21 AM
Hatsy Rei
Hatsy Rei - avatar
+ 7
Erm, the < symbol shows on the console log for me.
28th Apr 2017, 5:05 AM
Hatsy Rei
Hatsy Rei - avatar
+ 7
On web browser the console object is bypassed by sololearn code playground and displayed as html content in the code playground page... so all things between '<' and '>' characters are interpreted as html tag ( and mostly ignored because almost not recognized tags )... you need to write '&lt;' for outputting "lighter than" char in console :P
28th Apr 2017, 6:19 AM
visph
visph - avatar
+ 7
You can suggest to Sololearn to make an update to the code playground page for escaping this character in their console treatment ;)
28th Apr 2017, 6:39 AM
visph
visph - avatar
+ 2
@Hatsy are you using phone or PC? I use Pc Chrome. My phone SL still not upgraded, insufficient memory 😓
28th Apr 2017, 5:20 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 2
I think so. Just like to confirm here.
28th Apr 2017, 5:25 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 2
Thanks for reply again @visph. It's a bit cumbersome if the console.log does not reply all the characters fully especially when testing program is coded for text generation.
28th Apr 2017, 6:37 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 1
I just submitted a bug report to SL.
28th Apr 2017, 6:44 AM
CalviŐ˛
CalviŐ˛ - avatar