I'm currently trying to italicize one sentence in the middle of a string. It's a paragraph in a form that's created in redux. There are no html elements in this form schema. An object gets created with all the form content and then it gets passed into redux to display all the fields with the corresponding text.
I've tried to using string interpolation to implement html tags and also tried using escape codes(<i>) so far.
sectionPageTitle: "About",
sectionClass: "section-about",
sectionMeta: [
{
pageMeta: [
{
subsectionTitle: "WHO SHOULD USE THIS FORM?",
subsectionMeta: [
{
paragraph:
"There was a boy named Tom and he has blue hair. He has a sister and 2 dogs. One day Tom decided to buy a skateboard but his mom said no. Tom didn't care and bought one anyways. The next day he broke his arm."
}
]
}
I'd like to be able to ONLY italicize the sentence "Tom didn't care and bought one anyways."