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

Odd behavior in mess of nested tags #19

Closed
ghost opened this issue Mar 5, 2016 · 1 comment
Closed

Odd behavior in mess of nested tags #19

ghost opened this issue Mar 5, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 5, 2016

I'm not sure if this is a bug or I'm doing something silly, I suspect the latter, but I'm curious to know the cause of this. I'm trying to create an h4 tag with some text in it and then a link, like this:
<h4>Foo <a href="/bar/21">&#x2795;</a></h4>

Foo

The code I'm using is such:

(with-html-output-to-string (*standard-output* nil)
    (:h4 (fmt "Foo ~A" 
        (htm (:a :href (format nil "/bar/~A" 21) "&#x2795;")))))

This produces the following output, with an extra '>' mixed in there, hings are all out of order, and some duplication occurs.

<h4><a href='/bar/21'>&#x2795;</a>Foo >&#x2795;</a></h4>

Foo >➕

I've tried all varieties of (str)/(htm)/(format)/(fmt) that I can think of.

Any guidance would be appreciated.

@stassats
Copy link
Member

stassats commented Mar 5, 2016

(with-html-output-to-string (*standard-output* nil)
    (:h4 "Foo " (:a :href (format nil "/bar/~A" 21) "&#x2795;")))

@stassats stassats closed this as completed Mar 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant