Displaying Text on HTML - bigcartel

I made a website on Big Cartel and I need to add some text under the slideshow I am using on my homepage.
From what I gather the only way for me to do this is via code on HTML. I know nothing about coding so I was trying to look up tutorials on how to add text, but I could never get the text to display on the page.
How can I go about adding the text?
I tried using code I found online, just as an example so I can see how it's displayed. I couldn't get any text to display anywhere on the page.

Related

How can I add text to an existing Android Leanback Fragment?

I have a BrowseSupportFragment with multiple pages which are VerticalGridSupportFragments. The relevant code for this is essentially in this file here.
Sometimes these pages or VerticalGridSupportFragments don't have content to show. I'd like to display a brief message or image explaining this, but I cannot find how to modify the layout to include this text. I have found where I can add text and images to the Activity, but is there a way to make the text a part of the fragments individually rather than the activity?

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

C++ HTML viewer for scanning?

I just need some help in pointing me in the right direction. I have no issue with research but I don't know where to start!!! I want to make a program that uses a websites search function, but doesn't display the page. It will save the page and scan the HTML for a specific string and display it.
Would it work better to display the page in the background and search it, this way I don't have to save anything??
Where do I start??
A web page is mostly simple text. You can download a page with cURL and search it pretty much like you would any other text. If you don't want to search the contents of the tags, you'd want to search after parsing.

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.

Importing HTML into TinyMCE using ColdFusion

Hey everyone, I would appreciate a pointing in the right direction with the problem I'm having. In short, I'm working on an application that will create PDFs using TinyMCE and ColdFusion 8. I have the ability to create a PDF by just entering in text, pictures, etc. However, I want to be able to import an html template and insert it into the TinyMCE .
Basically, I have a file directory code snippet that lets me browse through my 'HTMLTemplates' folder, and am able to select an HTML document. Now, I want to be able to take all the code from that selected HTML document and insert it into my TinyMCE box. Any tips on how I might do this, maybe?
Thanks!
If I understood you correctly, you already have a TinyMCE plugin which pops up a window and allows you to browse the certain directory using existing cfm page which you render within the popup window. Right?
If not, you should start with this. Not sure how easy it is done in current version, but in the older TinyMCE I've created the custom upload plugin (needed to track the site security permissions for current user) pretty quickly.
Next, I can see two quick ways to pass the server file contents to the client-side:
Make it available via HTTP so you can make the GET request and read contents into the variable.
Output it on the page using CF (say, on form submit when file selected) and grab using JavaScript.
I'd personally tried the second option. After you grab the text into the variable you can put it into the TinyMCE using it's API.
It can be as simple as output escaped text into the hidden div with known ID and read it using DOM operations (assuming that there is cfoutput around):
<div id="myTemplate">#HTMLEditFormat(myFileContents)#</div>
Also you can output the text directly into the JavaScript variable (of cource, with accurate escaping), maybe like this.
<script type="text/javascript">
var text = '#HTMLEditFormat(myFileContents)#';
</script>
Most advanced and possibly better for performance (and definitely "cooler") way is to use the concept of script tags as data containers, like this:
<script type="text/plain">
#HTMLEditFormat(myFileContents)#
</script>
Last time I've seen this in Nadel's blog, I think. Read it, pretty interesting.
Hope this helps.