HTML formatting not working in header/footer of printed interactive report - oracle-apex

I have an interactive grid that I'm trying to print in PDF format.
In the grid's printing properties, I typed some HTML code, which didn't get interpreted for some reason, the text was printed but the HTML tags and CSS formatting were just ignored, is there a way to fix that?
I'm on APEX 22.2

For Page Header Text and Page Footer Text properties, you can enter text and page/app items. HTML and CSS are not supported for these attributes.

Related

How to adjust pages in RMarkdown pdf file?

I am creating a pdf document using RMarkdown in RStudio. The Knit do not create properly the fourth page. The page number on the foot still in the mean of on list at the botom of the page, and the text "desapears", even a new page is created but the text is not rendered.
I have just rolling back to 1.8
install.packages("devtools")
library(devtools)
install_version("rmarkdown", version = "1.8")
Is there any adjust in RStudio to avoid this issue ?
HTML and WORD make the report correctly using the same .Rmd file

my stylesheet says to output as xml but instead its text

my stylesheet says to output as xml but instead its text
Any insight?
The output is indeed XML. To verify this, right click in the browser and select "View source...".
But unfortunately most browsers choose to display the transformed XML by only showing its text content.

SharePoint design manager: how to insert a RichHtmlField?

I have created a site column of type Multiple lines of text and added it to a content type.
I have then created a page layout with the design manager using this content type.
The field inserted in the page layout is always a NoteField but I would like a RichHtmlField.
I don't know how to configure the field in the Snippet Gallery.
I have tried to specified the type of text to allow for the site column:
Rich text (Bold, italics, text alignment, hyperlinks)
Enhanced rich text (Rich text with pictures, tables, and hyperlinks)
It doesn't matter what I choose, I always end up with a NoteField.
Apparently, instead of choosing a site column of type Multiple lines of text, choosing the type Publishing HTML (Full HTML content with formatting and constraints for publishing) brings the rich editor needed. Still seems weird though.

Django text file upload and security when using 'mark_safe'

I'm working on a Django app where the user uploads a space/tab/comma delimited text file. I display the text in a browser and the user can then interactively parse columns of delimited values which get highlighted with css as they change the settings. (Only a sample is displayed not the whole file!)
To highlight the selections I insert html/css code in and around the text but have to 'mark_safe' the text to get the html/css to render. I assume this opens security issues as even I, a complete noob could insert html in my input file and get it to render.
My Question:
Is there something I can use to strip html out of the text file immediately after I've uploaded it and before I render it in the browser? Would stripping '<' and '>' out be enough? What about something to disable .js if required?
I understand there are other well documented security measures I can take regarding file uploads. However I'm after a solution to my specific issue relating to me 'marking_safe' the input text I then render to the browser.
Django already has Automatic HTML escaping for this. Take a look at the link I posted in the docs. Hope this helps.

Customized Rich Text Editor in Sitecore to generate BBCode tags instead of HTML

I am currently creating a mobile site using Sitecore, where I cannot use HTML as markup instead need to use BML as markup language for mobile. Please let me know the following in this regard:
We have a field called Description and its of type RICH TEXT. Here we cannot use the normal Rich Text Editor given by the Sitecore as it generates HTML. So can anyone tell me if I can create a customized RICH TEXT Editor with a button Say "Mobile Bold" and which should generate tags for mobile instead of normal HTML <b></b> tags .
As you all know we can change the RICH TEXT Editor from Default to FULL by setting the source attribute of the field to /sitecore/system/Settings/Html Editor Profiles/Rich Text Full. So in the similar way can I create one more item in the Core DB as /sitecore/system/Settings/Html Editor Profiles/MobileRichTextFull and include customized buttons to it so as to generate BML tags as described above. If this is possible let me know what are all the settings need to be done and steps to be followed for the same.
do you want the users to edit BML directly, or are you able to transform HTML to BML?
For the latter, you'd better solve this in the presentation layer/pipeline.
HTML Agility Pack will be your friend when going for this last solution.
Otherwise, look at Teleriks resources about the editor.