: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
import React from 'react';
import { RawHTML } from '@wordpress/element';
import { IFormBlockAttributes } from './registerFormBlock';
export default function FormSaveBlock({ attributes }: IFormBlockAttributes) {
const { portalId, formId } = attributes;
if (portalId && formId) {
<RawHTML className="wp-block-leadin-hubspot-form-block">
{`[hubspot portal="${portalId}" id="${formId}" type="form"]`}