Comments (2)
I’m guessing you are not escaping the html in any way when it’s added to the model which in turn causes the JSON to break when it’s posted back to the server.
from piranha.core.
I'm trying to understand about escaping html. Here is my block definition:
using Piranha.Extend;
using Piranha.Extend.Blocks;
[BlockType(Name = "RawHtml", Category = "Content", Icon = "fab fa-html5")]
public class RawHtmlBlock : TextBlock
{
}
and the cshtml file:
@model RawHtmlBlock
@Html.Raw(Model)
from piranha.core.
Related Issues (20)
- Upgrade TinyMCE to 6.7.0? HOT 1
- Extend user information
- Method not found error on running migration HOT 1
- Upgrade to .NET 8 HOT 2
- Remove support for Summernote
- Remove support for SimpleSecurity
- Remove support for SimpleCache
- Make sure internal implementations isn't public
- Remove support for Azure.Search
- Validation for a NumberField within the manager
- Private Blob Storage and Managed Identity doesn't work. HOT 1
- Alias service causes excessive cache usage
- PrimaryImage with null Media in ISearch.SavePostAsync HOT 2
- Sitemap generation using http HOT 1
- Configuration for static file middleware HOT 1
- Caching breaks ContentService HOT 1
- HtmlField TinyMCE editor not working in custom region HOT 3
- Piranha.Extend.Blocks.HtmlColumnBlock - Piranha Version 11.0 HOT 1
- Update ImageSharp to 2.1.7 HOT 1
- FieldSettings not being passed to field collection region. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from piranha.core.