Open omahane opened 7 months ago
@omahane I am glad I had you make the ticket. I thought this was about the facility locator only showing part. I didn't catch that it was on our FE. That likely has to do with it being passed into the component. We should involve @eselkin and @maxx1128 on the solution here.
Especially since the design system recommends the use of curly quotes https://design.va.gov/content-style-guide/punctuation#quotation-marks
I confirmed that we are already handling this correctly on the LH push side of things. The quotes are being encapsulated.
This also affected an Editor that attempted to double-quote a Staff profile "nickname" int he First Name field. And, as I understand it, the double-quotes also prevent screen readers from reading text that follows the 1st double-quote encountered int he text string. Just a heads-up.
But fo my example, above here, a Sample page for testing: https://prod.cms.va.gov/salisbury-health-care/about-us/leadership
Notice Charles 'Dave' Using single quotes got us by to help the editor...
Describe the defect
When an editor uses double quotes in a Facility operating status, the status content saved to push is truncated at the first double quotes.
To Reproduce
Steps to reproduce the behavior:
AC / Expected behavior
Screenshots
Additional context
Suggested fix, per @swirtSJW, is to replace double quotes with single quotes on save.
Labels
(You can delete this section once it's complete)
Team
Please check the team(s) that will do this work.
CMS Team
Public Websites
Facilities
User support
Accelerated Publishing