Display raw html in tinymce that is wrapped in code/pre, not rendered - html

I am using tinymce as my wysiwyg editor in laravel app.
Everytime i create an article that contains code such as html meta tag or title etc wrapped in code/pre. Once i reload the page to edit, it disappears. If i set the encode raw then it does not disappear in backend but displays all raw html in front end. I want to display only raw html in frontend that is wrapped in code/pre. I dont know how many days i need more to solve it? All i want is to display html code in my blog, raw html code that is wrapped in code/pre, not rendered! This is my thread in stackoverflow. Please help.
code snippet disappears only plain text remains in tinymce
I will delete the previous thread once i solve it, sorry to post similar question.

Related

Gravity Forms HTML Block Bug

I recently discovered a bug with gravity forms and I was wondering if you guys could help me and the community.
So, the problem it's with HTML content. I attached the images here. Basically, everything works just fine, when starting a new form, the HTML content it's displayed accordingly.
https://ibb.co/DRJrCzw
But when someone goes to the next page and then comes back to the first one, the content it's displayed like in the image nr.2.
https://ibb.co/Qrz8Wbd
This fixed it for me!
JacKrac (https://www.reddit.com/user/JacKrac/)
Assuming you are a paying customer, have you reached out to support?
With that said, I believe it is because you are using shortcodes in the text.
The second time you visit it, the form content is likely rendered a different way compared to when the page first loads, likely with an Ajax request and/or javascript the second time around and the shortcode is not being processed.
One thing to try would be to copy the generated HTML and paste that into the HTML block in gravity forms, removing all the shortcode.
So, basically:
Open a text editor and save the current content you have in Gravity Forms, so you have a backup of it.
Open a page to view the form and then use your browser's HTML inspector to copy the HTML
Paste the HTML into gravity forms
If that fixes it, I would still reach out to them and ask them about how shortcode is handled within the html block and also let them know you think you found an issue.

Content showing well formated in frontend but in editing mode it's showing html codes

I am using tinnymce editor in textarea sections of my project.
when i am inserting the content inserting in database as html code like
<p>Hello, its a test post</p><br/>
but its showing in frontend pretty nice.
the probleme is when i am going to edit page to update the post content are showing as html raw code same to same in data base like
<p>Hello, its a test post</p><br/>
thats why i can't see the images in contents.
please help me to fix the probleme.
Some aspect of your application is escaping the HTML when you go to reload it into TinyMCE. When you want to load the content back into the editor you need to load HTML that has not been escaped.

Can i add <textarea> inside Tinymce editor?

I integrated Tinymce in Rails 4 application. Now, i added content in Tinymce from admin and display it front side and works fine.
But as per requirements, I have to add <textarea> <input> tags into Tinymce editor and display it front side in HTML format.
I tried lots but not get any idea. Any one have trick or idea in it.
Thanks

How do you extract data from a website's HTML code when its source code doesn't contain any text that appears on the site?

I'm trying to extract data from a particular site but when I read through the html code it contains none of the text that appears on the webpage. And all the webpages have the same code as the home page. I was wondering if it is possible to 'hide' data on your webpage somehow, and how I might be able to find it.
Thanks!

Html tags are mixing up

I am new to html. I am trying to attached multiple html page on the server (in the memory) and send it back as one page to client (asp.net mvc 3) but my html source tags are mixing up with each other (resulting into wrong layout) if one of my html source content has not closed the tags properly and does something funny with its layout.
How can I do this such that each html content is displayed independent from other html contents one after each other?
EDIT: I should have mentioned that I have no control over the source html content that I need to attach together so it the source html is wrong, it will come to me wrong!
Short of having separate documents, fetched by separate HTTP requests all viewed in (i)frames — you can't.
Write code that doesn't output invalid HTML instead.
I am also new to html and have dealt with this kind of problem simply by changing my code editor. Try using one that highlights the start and the end of the html tag. Personally I use Komodo IDE or Notepad++.