Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRyan Schmelter
9,710 PointsWhy would we need &rsquo to create an apostrophe inside of p tags?
I'm not sure why this is necessary.
1 Answer
Steven Parker
231,198 PointsThat's no ordinary apostrophe! That's a "curly" or "word processing" style fancy apostrophe. Using the character entity allows the browser to render it without the server having to store or transmit anything other than common ASCII characters. This eliminates any risk of it getting altered by some process along the way.
Ryan Schmelter
9,710 PointsRyan Schmelter
9,710 PointsI appreciate the response Steven. Why exactly is this necessary though. It's not like that part of the text is getting submitted in the form. Thanks!
Steven Parker
231,198 PointsSteven Parker
231,198 PointsNo, but it is stored at the server, and then transmitted from the server to the browser to be displayed.
Steven Parker
231,198 PointsSteven Parker
231,198 PointsRyan Schmelter — Did that resolve your issue? You can mark a question solved by choosing a "best answer".
And happy coding!