This is a migrated thread and some comments may be shown as answers.

Weird tag content: <pre id="RadEditorEncodedTag">PGVtYmVkIGhla.....

1 Answer 40 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Jepoy
Top achievements
Rank 1
Jepoy asked on 01 Apr 2011, 10:18 AM
Telerik Admin,

Good Day. I know that this thread is very old however the issue I encountered is somewhat very much related to what was raised by some of the users specially with Midhun Kumar Allu in: http://www.telerik.com/community/forums/sharepoint-2007/full-featured-editor/radeditor-for-wcm-sharepoint-specialtags-and-scripts.aspx

Given Scenario:
1. We have MOSS web page(s) that contains <embed > tags.
Like if I view that page and view source of that I can see the following tags:

<embed height="240" width="320" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" src="http://video.abc.com/com/abcplayer/bin-debug/main.swf?i just omit other characters...." type="application/x-shockwave-flash"></embed>


2. And in a separate app. when we extract the content of this web page through moss webservice. everything is fine except for the <embed> tags. I am not sure but all info in <embed> tags will become something like this:
<pre id="RadEditorEncodedTag">PGVtYmVkIGhlaWdodD0iMjQwIiB...............................

Note: We are using the updated version of MOSS.

Question/Problem:
* Like I said my question is somewhat related to Midhun Kumar Allu except that mine is via Moss Content Extract. Can you please help me what configuration that I need to consider? What am I forgetting to include? How do we decode (or decrypt if applicable) that?

Really appreciate any quick feedback...
Regardz, -jepoy

1 Answer, 1 is accepted

Sort by
0
Jepoy
Top achievements
Rank 1
answered on 05 Apr 2011, 03:27 AM
Hello Guys,

Please neglect this I just found the solution to decode it:
Private Shared Function DecodeString(ByVal nodeContent As String) As String
    Try
        Dim byteContent As Byte() = Convert.FromBase64String(nodeContent)
        Return System.Text.Encoding.UTF8.GetString(byteContent)
    Catch generatedExceptionName As Exception
        Return nodeContent
    End Try
End Function
Private Shared Function DecodeMatch(ByVal m As Match) As String
    Return DecodeString(m.Groups(2).Value)
End Function
Tags
WebParts for SharePoint
Asked by
Jepoy
Top achievements
Rank 1
Answers by
Jepoy
Top achievements
Rank 1
Share this question
or