Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some underscore.js template tags are broken #417

Closed
scottsd opened this issue Feb 27, 2014 · 4 comments
Closed

Some underscore.js template tags are broken #417

scottsd opened this issue Feb 27, 2014 · 4 comments

Comments

@scottsd
Copy link

scottsd commented Feb 27, 2014

Trying to beautify this at http://jsbeautifier.org/ :

<div class="col-sm-9">
                                                <textarea id="notes" class="form-control" rows="3">
                                                        <%= notes %>
                                                </textarea>
                                        </div>

It breakes the "notes" template tag:

<div class="col-sm-9">
        <textarea id="notes" class="form-control" rows="3">
                <%=n otes %>
        </textarea>
</div>

Other test cases:

                        <div class="col-sm-2">
                                <a href="#" target="_blank">
                                        <%= title %>
                                </a>
                        </div>

and:

                        <div class="col-sm-3">
                                <%= no %>
                        </div>

See also (maybe) related issue #404

@bitwiseman
Copy link
Member

Similar to #389.

@tony
Copy link

tony commented May 23, 2014

Getting the same issue with jst/ejs.

@bitwiseman
Copy link
Member

Does jst/ejs use the same <%= element style?

@kdureidy
Copy link

kdureidy commented Apr 7, 2015

This issue is really annoying, I hope you can fix it soon

@bitwiseman bitwiseman added this to the v1.6.0 milestone Apr 7, 2015
bitwiseman added a commit that referenced this issue Jun 16, 2015
Html beautifier no longer kills php and underscore.js templates.
IF you try to run php the the js beautifier it will still die.

Fixes #490, #417
bitwiseman added a commit that referenced this issue Jun 16, 2015
@bitwiseman bitwiseman modified the milestones: 1.5.7, v1.6.0 Jun 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants