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

HTML content not shown #30

Closed
techmantoolz opened this issue Apr 8, 2015 · 0 comments
Closed

HTML content not shown #30

techmantoolz opened this issue Apr 8, 2015 · 0 comments

Comments

@techmantoolz
Copy link

Hi there

I am using Bootstrap / Font-Awesome and was hoping to use icons within the rating - but the HTML is stripped out leaving empty tags. Is there a means to incorporate these ?

TIA

Update:
I've modified JS to look for HTML content in 'data-html' attribute and then use html insertion (there isn't any error checking etc):

// create ratings - but only if val is defined
                        if (val) {
                            text = $(this).text();
                            html = $(this).data('html'); // added this
                            if (html){ text = html }; // and this

                            $a = $('<a />', { href:'#', 'data-rating-value':val, 'data-rating-text':text });
                            $span = $('<span />', { html:(userOptions.showValues) ? text : '' }); //changed to html

                            $widget.append($a.append($span));
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