<!-- wp:paragraph -->
<p>bleh</p>
<!-- /wp:paragraph -->
<!-- wp:html -->
<div class="foo" foodata="mydata">why</div>
<!-- /wp:html -->
and the rendered page ultimately has the following in it:
<div class="entry-content">
<p>bleh why</p>
</div>
What is likely to be responsible for mangling my custom HTML and how do I make it stop?
FWIW, I am using the Twenty Twenty-One theme with no changes, and I installed a few plugins that I have since deactivated/uninstalled in the hopes that this would help me understand the problem (it didn’t). My server is running WordPress 5.8.2.
]]>Example:
New Balance to Use Cardano <b>Blockchain</b> to Confirm Product Authenticity
From Inspector:
<a href="https://xxx" target="_blank" rel="noreferrer" class="" data-ssxxx="1">New Balance to Use Cardano <b>Blockchain</b> to Confirm Product Authenticity</a>
The term blockchain is surrounded by the bold tags which shouldn’t be there.
Anyhelp would be amazing, thanks!!
]]><br>
to some post titles. In the front end they work fine, but the document title shows them up. I’ve try to filter the title to strip those tags, but I’m not sure this is the best solution.<br>
to some post titles. In the front end they work fine, but the document title shows them up. I’ve try to filter the title to strip thos tags, but I’m not sure this is the best solution.How would I strip html tags from the text-area entries? Sometime HTML tags are copied with content into the text area and when an export is done the HTML tags are inside the content. I need to remove it.
https://www.ads-software.com/plugins/visual-form-builder/
]]>I have CF7 installed and functioning well (for a long time) on a number of websites – great plugin. I’ve notice on two sites that have been upgraded to version CF7 4.2.1 (4.2 was not tested) that when the [email]
tag is wrapped in <
and >
characters (e.g. <[email]>
) in the template then email notifications that are sent have the email address stripped out. Indeed if I add any text between <
and >
in the template then that is stripped. By removing the < and > the [email]
tag, email addresses are no longer stripped.
The email is correctly added to the DB (Flamingo or Contact Form DB) so it is not the actual form submission. I suspect the WordPress function wp_strip_all_tags()
or another function that uses it is being over zealous somewhere.
I have one other site that seems to work fine when upgraded at least with the Mail(2) template (waiting for the site owner to forward the Mail(1) test messages). Perhaps this is a plugin conflict. I will test the other sites when I have time.
Cheers,
Scott
https://www.ads-software.com/plugins/contact-form-7/
]]>Can someone please tell me what I’m doing wrong?
I’m trying to remove the tags from a sidebar that calls in Widget/Archives.
This is my code in functions.php
if (function_exists('register_sidebars')){
register_sidebar(1, array(
'name' => 'Navigation',
'before_widget' => '<li id="%1$s" class="%2$s">',
'after_widget' => '</li>',
));
register_sidebar(2, array(
'name' => 'Archives',
'echo' => false,
'items_wrap' => false,
'menu_class' => false,
'menu_id' => false,
'container' => false,
'container_class' => false,
'container_id' => false,
'before' => false,
'after' => false
));
register_sidebar(3, array(
'name' => 'Footer',
'before_widget' => '<li id="%1$s" class="%2$s">',
'after_widget' => '</li>',
));
}
This is how I’m calling it:
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
<?php endif; ?>
And this is the output:
<div id="sidebar">
<li id="archives-2" class="widget widget_archive"><h2 class="widgettitle">Archives</h2>
<ul>
<li><a href='https://localhost/mirfieldmarina/2014/08/'>August 2014</a> (4)</li>
</ul>
</li>
</div><!--end sidebar-->
]]>Im using googlenews RSS feeds with the WP RSS Multi Importer but when
I set “Check to get rid of all html and images in the excerpt” to NO
images dissapear and tables from the news feed dont make a mess of the theme layout, but I wanted to keep the images.
So in wp-content/plugins/wp-rss-multi-importer/inc
excerpt_functions.php
I changed on Line 242:
$content=strip_tags(html_entity_decode($content));
to keep certain tags:
$content=strip_tags(html_entity_decode($content),'<font><a><img><p><br>');
And
On the function showexcerpt return
near Line 275 where the line
says:
return $content;
I replaced it with:
return preg_replace('/\<[\/]?(table|tbody|tr|td)([^\>]*)\>/i', '', $content);
to strip out the table tags but keep the images as the tables where making my theme layout a mess.
Hope this helps out someone if I had more time I would have added metaboxes for a few tag options in the plugins admin for others to use.
Great plugin thanks, and works well with my own custom_post_types.
https://www.ads-software.com/plugins/wp-rss-multi-importer/
]]>So I have the latest version of WP and the latest release of your plugin. I was attempting to use it on a client’s site but I keep getting this error:
Warning: strip_tags() expects parameter 1 to be string, array given in "../wp-includes/formatting.php on line 1119"
Do you have any ideas on what’s causing this and what can be done to fix it? From what I’ve found online it seems to be a problem with the plugin because nothing else on the site is kicking this error up.
Thanks,
Site: https://dev.pcharing.net
https://www.ads-software.com/plugins/hs-simple-faq/
]]>The problem is when a customer goes from Checkout to either Payment Gateway: PayPal and Mijireh, the HTML tags show up.
I need a way to strip the tags from the Product names but don’t know where to code this.
Site url is: https://gaylemartz.com/
Specifically going from https://gaylemartz.com/checkout/ and clicking “Place Order”
Whatever gateway is chosen, the next screen will display with tags.
Thanks in advance for any suggestions,
Candy
https://www.ads-software.com/plugins/woocommerce/
]]>