Arelle Webserver - How to extract the actual label text [not the Standard tag text ] from XBRL filing? - xbrl

I use Arelle Webserver different views to extract tags from XBRL filing. However it looks like they do not extract the actual lable text. Is there a way to extract the actual label text [not the Standard tag text] from XBRL filing?

Related

Parsed json data includes question text and image

I have built out a struct and am correctly parsing JSON data and am getting the data to show up with one exception. The text I am getting also includes a URL string. How do I parse both the text and URL image?
Here is the example of the data:
"text": "<p>How would you rate your knowledge about investing in general and more specifically, the relationship between risk and return as shown in this chart?</p>\r\n\r\n<p>\r\n<img src=\"https://services.website.com/Charts/$versions/2180/2180.png\" />\r\n</P>\r\n"
I have a label called question text that the text is being parsed into. Do I need to add a UIImage to below the text label? The problem I am thinking with this is that on some questions I have text then an image, then more text.

How to display text in standard html

Work on asp.net MVC, One of external service return text as like following how to display this text with the standard format.
service output.
Want to display above text following HTML format.
You can use like this,
#Html.Raw(Model.Description)

Change the format of data a mobile client receives to display text strings

In a smartphone app I receive HTML text from a server that I have to parse using regexes because I can't display it as HTML (I can't use a webview). The regexes are very intensive (are many) and the results (being the original text inserted by users that cut and paste text from any source, pdf, rtf, etc.) is not always as good as the website counterpart. So, I want to suggest my boss to change the format the mobile client receives, so that I don't have to parse HTML. Question is: what could be this format?

Saving text as HTML from form

I have a form with a text field that users input text into. They can use multiple lines, put in bold text, underlined text, etc., but the text, when saved to SQL Server doesn't have any formatting saved, just the text is saved. What is the best way to save the text with the HTML so that when it gets viewed by another user and pulled up from Sql Server the HTML is saved and the formatting is saved?
Ex.
hello
Paul
This would be saved as
helloPaul
you can't see it but there are bold and carriage return html tags rapped around the text
When receiving data from the user, on the server side code, use HTML encode to safely store the data:
var inputData = Server.HtmlEncode("<strong>some data input from user</strong>"); //insert your user input data variable here
Then when displaying the data in your cshtml page, decode the data to display it as the user entered it:
HttpUtility.HtmlDecode(saveUserDataFromDatabaseVariable);
All this is assuming you have a rich text editor being plugged into the input field. CKEditor and TinyMCE are good ones.
You can use a text editor. Take a look at CKEditor. It's free and easy to use :)
Can you post some code and more details?
I have had good success with CKEditor. It is customizable, and its content can easily be saved via postback to a standard asp:TextBox.
It is possible that the editor you are using is not actually updating the input/textarea that you are using, it may be cloning the text and drawing the formatting in an overlay. You can use developer tools, or javascript, to verify this by checking the value property of the input or textarea element. If it is being saved via AJAX or javascript the code may be using the textContent or innerText properties instead of innerHTML.
I used the richtexteditor dll that's free online. it gave me a wiziwig box that the user can edit texxt in.

HTML/RTF string in to RTF file

Does anybody know how to insert some formatted text string into some RTF file?
I am able to insert any plain text into an RTF file (to any place in document I want), but not formatted strings.
I know that when such string is added to RTF file, then also some RTF heading has to be updated. And here is a problem. I need to find out what shall be placed in RTF heading and in which exactly place. Maybe there is some ready solution. So far I cannot find it anywhere.
Normally I work with Java, but the problem is not necessary related to any language.
They talk about using a valid headder, in the .rtf specifications. I hope this will help you to get a valid format result.
Plain text in .rtf files, without any valid "formatting syntax", will not return any other result than the given plain text.
Another way, to get a neat rich text formatted document, is by using an .rtf editor or some .rtf compiler for the programming language you are using.
Instead of dealing with the rtf property, you can use the Text property. Set the cursor to where you want to insert text. Then paste formatted text from another richtext box, or paste normal text and change its formatting.