simplestore icon indicating copy to clipboard operation
simplestore copied to clipboard

Html dont render in item description

Open bsde1234 opened this issue 3 years ago • 4 comments

  1. Html is showing as it is, not rendering.
  2. Is there any pagination in product index view

bsde1234 avatar Jan 04 '21 05:01 bsde1234

Please share your code or necessary snippet

On Mon, Jan 4, 2021 at 8:42 AM bsde1234 [email protected] wrote:

Html is showing as it is, not rendering.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chrisdiana/simplestore/issues/41, or unsubscribe https://github.com/notifications/unsubscribe-auth/AISUT46J5SJUJ4OKWI5QKPTSYFILLANCNFSM4VSQYS6Q .

peterochieng avatar Jan 04 '21 08:01 peterochieng

json

{
	"products" : [
		{
			"name" : "Awesome T-shirt",
			"price" : "35.99",
			"options" : [
				{ "Size" : "Small,Medium,Large" }
			],
			"image" : "http://upload.wikimedia.org/wikipedia/commons/c/c6/Grey_Tshirt.jpg",
			"description" : "<p>This is a very awesome grey T-shirt</p>"
		}
	]
}

In product details view the item description contains <p>. It doesn't render.

bsde1234 avatar Jan 04 '21 08:01 bsde1234

try to escape the closing tag for

. Like so,<\ /p>

On Mon, Jan 4, 2021 at 11:45 AM bsde1234 [email protected] wrote:

json

{ "products" : [ { "name" : "Awesome T-shirt", "price" : "35.99", "options" : [ { "Size" : "Small,Medium,Large" } ], "image" : "http://upload.wikimedia.org/wikipedia/commons/c/c6/Grey_Tshirt.jpg", "description" : "

This is a very awesome grey T-shirt

" } ] }

In product details view the item description contains

. It doesn't render.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chrisdiana/simplestore/issues/41#issuecomment-753842565, or unsubscribe https://github.com/notifications/unsubscribe-auth/AISUT4Z4NEI3X3MZGT2HGTLSYF5ZXANCNFSM4VSQYS6Q .

peterochieng avatar Jan 04 '21 08:01 peterochieng

Not working, I mean it displays as <p>This is a very awesome grey T-shirt</p> without rendering

bsde1234 avatar Jan 04 '21 10:01 bsde1234