HTML broken in notifications



  • I create a string variable containing a link to a room (HTML). 

    Logging it to the console displays everything fine but sending as notification creates broken html. 

    var message = '<h4><b>Status report <a href="https://screeps.com/a/#!/room/' + this.name + '">' + this.name + '</a></b></h4>' + ... 
    console.log(message) looks fine, but  
    Game.notify(message) creates something like

    Status report E41N11">E41N11

    I believe it's convenient to have auto generated links to rooms. But room.name should't be misused for this, as it is assumed to be the name of the room, not a link to it. 

    Use the string representation of the room object itself as link or better room.link would be a clean approach.