text box displays <div class=

Lisyn1ce

New member
Local time
Today, 03:30
Joined
Jun 14, 2013
Messages
8
I want to start with a quick apology in the sense that it is likely that this issue has already been addressed on the forums. I'll also add that I searched for a bit and was unable to find aything suggesting my assumption is a certainty.

I have a SharePoint 2010 site with a list, that list is now linked to a table in my Access database. I use that list to create a report. That report in print view displays:

<div class="externalclassxxxxxxxxxxxxxxxx">

To be sure, the list within the SharePoint site does have HTML enabled in the column, but I do not want this to display in the report.

If anyone can assist me with this, I may be willing to offer you my job, wife and kids in exchange.

Respectfully
-CXN
 
Also as I look at the table I have generated from the from the SharePoint site, this is the string that is being listed within the field which references the data from SharePoint. But there has to be ways to hide this.:o
 
A div is a typographical feature of html and relates to the presentatiion of the information and use when rendering the page through a browser. You could use instr looking for the chevron ">" but you would need to look at the whole field. The correct syntax also involves
<div class="foo">foo</div>

Simon
 
Thank you for the response. I understand that the chevron is correlated with HTML, but my concern is that on the report is showing in print view. It is also listed on the table which is linked to the SharePoint list. The question is, how do I prevent the tag which is,

<div class="ExternalClass2C3EFBE367D74A3DABD06F8BDBD9D422">

from displaying on the report so that when I print the report or convert it to pdf, the tag no longer shows.
 
I'm not a Sharepoint expert but I had a look around this is what I found:

Issue is you are using RichHTMLField to get the input from your end users for this field. So sharepoint adds some HTML tag. but when you are displaying you are using FormField, which is text based, so it shows all the HTML tags also.


So solution is :
1. Use RichHTMLField for both input and display
2. Use FormField/ Simple textbox for both input and display
3. Write a custom control / control extender to clean all the HTML before outputting it
4. Also a less recommended solution will be to search this tags on page via jQuery and remove them.


Simon
 
This is good, what I have done is #1 which was not effective
#2 which I believe I've done (controls from within SharePoint allowed me to change some options) -This has also been ineffective.

#3 is another solution I had seen online but seems to be beyond my ability to complete.

# 4 might be next. Thank you

So solution is :
1. Use RichHTMLField for both input and display
2. Use FormField/ Simple textbox for both input and display
3. Write a custom control / control extender to clean all the HTML before outputting it
4. Also a less recommended solution will be to search this tags on page via jQuery and remove them.


Simon[/QUOTE]
 

Users who are viewing this thread

Back
Top Bottom