[WIKI-481] refactor: editor parser #7261

This commit is contained in:
Aaryan Khandelwal 2025-06-27 16:05:38 +05:30 committed by GitHub
parent 25a6cd49fc
commit e09aeab5b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 47 additions and 22 deletions

View file

@ -0,0 +1,19 @@
/**
* @description function to extract all additional assets from HTML content
* @param htmlContent
* @returns {string[]} array of additional asset sources
*/
export const extractAdditionalAssetsFromHTMLContent = (_htmlContent: string): string[] => [];
/**
* @description function to replace additional assets in HTML content with new IDs
* @param props
* @returns {string} HTML content with replaced additional assets
*/
export const replaceAdditionalAssetsInHTMLContent = (props: {
htmlContent: string;
assetMap: Record<string, string>;
}): string => {
const { htmlContent } = props;
return htmlContent;
};