user3474498
user3474498

Reputation: 5

Meteor 0.8 and &#2122 escaping

Under meteor 0.7, ampersand-escaped codes worked, as in the following example.

<template name="navHeader">
<div class="navbar navbar-fixed-top navbar-inverse" role="navigation">
    <div class="container-fluid">
        <div class="navbar-inner">
            <ul class="nav navbar-nav">
                <li class="active">
                    <a class="brand" href="/">Company&#8482 Product&#8482</a>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Teams<b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="#">Recent Team 1</a>

Under meteor 0.8, this tosses an error:

 Invalid numerical character reference starting with &#

I've looked through meteor and blaze documentation but have not found the solution--is there an easy fix to make this work?

Thanks much.

Upvotes: 0

Views: 125

Answers (1)

David Weldon
David Weldon

Reputation: 64312

Character escapes must end in ;. This should work:

<a class="brand" href="/">Company&#8482; Product&#8482;</a>

Upvotes: 1

Related Questions