We have made a small change to the built-in game console, now it supports two separate methods:
console.log filters all HTML entites on the server side;
console.logUnsafe leaves all responsibility to you, please make sure you filter the content appropriately.
Read more in this GitHub issue: https://github.com/screeps/screeps/issues/162#issuecomment-3796847328