Skip to content

Commit

Permalink
using .html instead of .text so currency chars aren't escaped
Browse files Browse the repository at this point in the history
  • Loading branch information
Brett Wejrowski committed Nov 14, 2011
1 parent 09f5e9c commit 12f193c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -141,7 +141,9 @@ Each column is represented by an object, the most basic setup simple specifies w

There are also some built in 'views' that will create a special column. For example, an 'increment' view:

`{ view: "increment" , label: false , text: "+" }` will have a link that increments the quantity. You can specify the text of the link with that `text:` attribute.
`{ view: "increment" , label: false , text: "+" }`

will have a link that increments the quantity. You can specify the text of the link with that `text:` attribute.

You can add `view: "currency"` to format the column as currency (see the currency section on more information on currency formatting).

Expand Down
4 changes: 2 additions & 2 deletions simpleCart.js
Expand Up @@ -1296,7 +1296,7 @@ generateSimpleCart = function(space){
if( isObject( val ) && val.el ){
simpleCart.$( selector ).html( ' ' ).append( val );
} else if( !isUndefined( val ) ){
simpleCart.$( selector ).text( val );
simpleCart.$( selector ).html( val );
}
},

Expand Down Expand Up @@ -1558,7 +1558,7 @@ generateSimpleCart = function(space){
}
} ,
html: function( html ){
return this.text( html );
return this.html( html );
} ,
val: function( val ){
return this.attr( _VALUE_ , val );
Expand Down
4 changes: 2 additions & 2 deletions simpleCart.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 12f193c

Please sign in to comment.