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

<button></button> seems to break a stash #19

Closed
pmeissner opened this issue Aug 8, 2012 · 2 comments
Closed

<button></button> seems to break a stash #19

pmeissner opened this issue Aug 8, 2012 · 2 comments

Comments

@pmeissner
Copy link

If I add a <button> element in my stash it breaks the stash at that point. I replaced it with an <a> so it's not a show stopper, just wanted you to know. I'm using twitter bootstrap modal to hide some content below.

My code:

{exp:stash:set name="highlightRelationship{segment_1}{segment_2}" save="yes" scope="site" replace="no" parse_tags="yes" parse_depth="2"}
            {exp:playa:children field="{segment_1}_highlight_relationshi"}
            <aside class="span3 relatedHighlight">
                <a data-toggle="modal" href="#myModal{entry_id}">
                    {exp:ce_img:single src="{highlight_image}" width="270" crop="yes" class="highlightImage" alt="{title} Image"}
                    <div class="asideContent">
                    <h4>{title}</h4>
                    {exp:eehive_hacksaw words="32" append="..." allow="<p><strong><em><i><b>"}
                        {highlight_body}
                    {/exp:eehive_hacksaw}
                    </div>
                </a>
            </aside>
            <div class="modal hide" id="myModal{entry_id}">
                <div class="modal-header">
            <button data-toggle="modal" href="#myModal{entry_id}">X</button>
                    <h3>{title}</h3>
                </div>
                <div class="modal-body">
                    {exp:ce_img:single src="{highlight_image}" width="270" crop="yes" class="highlightImage" alt="{title} Image"}
                    <small>{if highlight_link}<a href="{highlight_link}" rel="nofollow" target="_blank">{highlight_client_name}</a>{/if}{if highlight_link == ""}{highlight_client_name}{/if}</small>
                    {highlight_body}
                </div>
                <div class="modal-footer">
                    <a href="#" class="btn" data-dismiss="modal">Close</a>
                </div>
            </div>
            {/exp:playa:children}
        {/exp:stash:set}
@pmeissner
Copy link
Author

After testing some more, I noticed that there was a weird character in my code. My "x" in the button, was encode weirdly and was breaking the stash.

@pmeissner
Copy link
Author

Closing this issue.

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

1 participant