Additional body tag in ckeditor - php

I am using ckeditor , but if i am trying to enter data from an iphone,its insert an additional body tag to the data base,but its work fine in computers.How can i avoid this extra body tag .
I am using editor.getData() for taking data from ckeditor.
Any one please help me

Related

Error generating docx with opentbs : the textbox tag disappear

I'm trying to use OpenTBS on my project to generate automatically a Resume using a word template (.docx)
the template contains multiple images for the frame of the template.
when I try to generate the file with my data, i noticed with the debug option that the opening tags disappear when I use block=tbs:row inside.
here is my php code :
$domains=array(
array('id1'=>"xxx",'id2'=>"xxx"),
array('id1'=>"yyyy",'id2'=>"yyyy"),
//...
);
$tbs->LoadTemplate('mytemplate.docx', OPENTBS_ALREADY_UTF8);
$tbs->MergeBlock('domain', $domains);
on my docx side :
[domain.id1;block=tbs:row] :
[domain.id2]
these tags are inside a table which is inside a textbox.
after 2 days debugging I realized that some opening textbox tags disappear on generation causing an xml parsing error opening the document
edit : After some other tests, it's when I use the block tag inside a textbox that the bug appears.
thanks for your help.
Matt.

Ckeditor in PHP

I have no issue in adding ckeditor to my webpage but when i insert a html source and submit the form. It returns the value with a html tag on it.
<p>This is some <strong>sample text</strong>.</p>
You can checkout the demo here http://www.ier.cl/intranet/OC/public/assets/javascript/ckeditor/_samples/php/standalone.php
How to remove the html tag on php?

TinyMCE MySQL and html tags

Here's my problem: I am using for the first time TinyMCE for a textarea for data that is inserted into a database to display on a blog.
I type data into the textarea, insert into the database table, and when the text arrives in the database it has html tags. When it displays on the web page it display html tags. The tags are apparently added by TinyMCE, which might be okay if they worked. But they do not work. They only display.
I have searched but cannot find an understandable solution. I tried sanitizing the posted data. I tried removing all filters. Nothing works.
A solution suggested adding this, which I added to the head under the cdn link, but to no avail:
<script>
tinyMCE.init({
mode: "textareas",
theme: "advanced",
force_br_newlines: false,
force_p_newlines: false,
forced_root_block: '',
});
</script>
If anyone can help, I would appreciate it.
Try using the following tags when you output data from your database
echo htmlspecialchars_decode(stripslashes($your_custom_variable));

In Dynamic contents, complete all the incompleted html tags with jQuery

I want to check all those elements in my page which are not enclosed within the html tags properly. for example i have the following scenario:
This is the picture of my village <img src="path_to_image" <br> some other text.....
Here in the above string in the page which also contained the tag after the image tag in the string and want to complete it with jQuery.
Please also note that the contents are displayed on my page from mysql database table.
Any help will be appreciated. thanks
try and run your markup through a validator:
https://validator.w3.org/

Codeigniter ckeditor add span tag

I am using ckeditor for codeigniter project, when i try to add span tags it's getting replaced with p tag.
Is there any way to add span tag using ckeditor?
Do you have XSS filter turned on in the config file? It removes some "illegal" tags from your POST input.
Try this

Categories