Skip to content

Commit

Permalink
CMS-500: Add lang attribute to htmlContent
Browse files Browse the repository at this point in the history
  • Loading branch information
ayumi-oxd committed Dec 23, 2024
1 parent 7f07e96 commit 36cdfc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gatsby/src/components/htmlContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default function HtmlContent(props) {
if (!props) return null
return (
<div
lang="en"
className={`raw-html-content ${props.className ? props.className : ""}`}
dangerouslySetInnerHTML={{ __html: htmlContent || props.children }}
/>
Expand Down

0 comments on commit 36cdfc3

Please sign in to comment.