mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 00:32:35 +10:00
fixes #2176, text align was not being reflected in summary sections
This commit is contained in:
@ -15,10 +15,16 @@ import type {
|
||||
URL,
|
||||
} from "@reactive-resume/schema";
|
||||
import { Education, Experience, Volunteer } from "@reactive-resume/schema";
|
||||
import { cn, hexToRgb, isEmptyString, isUrl, linearTransform } from "@reactive-resume/utils";
|
||||
import {
|
||||
cn,
|
||||
hexToRgb,
|
||||
isEmptyString,
|
||||
isUrl,
|
||||
linearTransform,
|
||||
sanitize,
|
||||
} from "@reactive-resume/utils";
|
||||
import get from "lodash.get";
|
||||
import { Fragment } from "react";
|
||||
import sanitizeHtml from "sanitize-html";
|
||||
|
||||
import { BrandIcon } from "../components/brand-icon";
|
||||
import { Picture } from "../components/picture";
|
||||
@ -90,7 +96,7 @@ const Summary = () => {
|
||||
<h4 className="mb-2 border-b pb-0.5 text-sm font-bold">{section.name}</h4>
|
||||
|
||||
<div
|
||||
dangerouslySetInnerHTML={{ __html: sanitizeHtml(section.content) }}
|
||||
dangerouslySetInnerHTML={{ __html: sanitize(section.content) }}
|
||||
style={{ columns: section.columns }}
|
||||
className="wysiwyg"
|
||||
/>
|
||||
@ -215,7 +221,7 @@ const Section = <T,>({
|
||||
|
||||
{summary !== undefined && !isEmptyString(summary) && (
|
||||
<div
|
||||
dangerouslySetInnerHTML={{ __html: sanitizeHtml(summary) }}
|
||||
dangerouslySetInnerHTML={{ __html: sanitize(summary) }}
|
||||
className="wysiwyg"
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user