placeholder sentence into new row - html

I am looking for an solution. If there's no any, well I cannot help it :]
I like placeholder attribute quite a lot. Today/tonight I was making an contact form.
However I am wondering is there any solution to put an word/sentence into new row into placeholder...
Example:
You are suppoused,
to write an message to me...
Instead of:
You are suppoused, to write an message to me...
I hope there is an way. Thanks in advance

From the WHATWG (emphasis mine):
4.10.7.3.10 The placeholder attribute
The placeholder attribute represents a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. The attribute, if specified, must have a value that contains no U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN (CR) characters.
Seems like a pretty clear no.

Related

How check value in textarea

How can I check the value in the text field. When you enter a value in this field, it is not displayed in the DOM tree. Are these the problems of this tag or the developer's jamb? Sorry for the Russian language in the English community, I hope this will not affect your answer in any way)
I have tried this method
1 $I->see("латук", ","#tone_objects_m"");
just grab the element and get its value
let text = document.getElementById("myText").value
console.log(text)
<textArea id='myText'>some text</textArea>

Find the paragraph number glyph

I have document with multilevel numbering of paragraphs. As I traverse the paragraphs in GAS how do I get the actual numbering on each paragraph.
Eg: 1,1.2,1.2.3 etc.
I tried ListItem but the ListId returned a string identifier.
If you are only referring to NUMBER as glyph type, yes you can achieved it by using the ListItem method. The problem is the "dot" that is present in your numbers. I think this is because the only format that is supported are BULLET, HOLLOW_BULLET, SQUARE_BULLET, NUMBER, LATIN_UPPER, LATIN_LOWER, ROMAN_UPPER, and ROMAN_LOWER. As "dot" is not considered number, I think this is not just a simple code. I have found this github post, you could check if this could be a little help.

How do you replace part of a string of an apache NIFI attribute?

Can you update attribute using replace text of an attribute's value?
I have an attribute - ${a} which has a place holder called "PLACEHOLDER". How do I replace each occurrence of the word "PLACEHOLDER" in attribute ${a} with the value of attribute ${b}?
I have tried using replace text processor - using both Regex Replace and Literal Replace replacement strategies without any luck.
See below my example.
1. Generate flow file.
Replace text attempt 1 - literal replace strategy
Replace text attempt 2 - regex replace strategy
None works as attribute value is unchanged.
How can I achieve this? If not this processor, which one please? How? Thanks in advance!
Haha...Such a bummer. Found the answer. Should have kept digging through the documentation i guess.
Use update attribute processor then set attribute to ${a:replace('PLACEHOLDER', ${b})}
Hope this helps someone who's not searched documentation properly like me in future :-)

Remove first line from HTML Markup Field using RegEx

I have a single text field that contains HTML markup. The system that generates this field content always seems to generate a first line with a non-visible carriage return value in it and I can't seem to prevent if from doing so.
Does anyone know of a way (perhaps using a Regular Expression), to remove that first line from this text field?
I'd prefer to leave all other instances of the carriage return values in the field as is, so if it's a RegEx statement that will just remove the first line of a text field, that would work for me.
Any suggestions most welcomed.
Cheers,
Wayne
Usually the trim (often removes whitespaces, CR ) method is used for this in many programming languages. You did not state in what language you will be doing this...

HTML attribute value question

what does it mean a value that contains no U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN (CR) characters. Can some one explain in layman's terms and give an example?
I guess it means a string that doesn't contain a line feed or carriage return character, like this_one.
here_is
one_that_
does
Update
I got this info from w3.org
Please link to this. I thought it may have been don't use them in your HTML attributes, but I just validated a page with a multiline title attribute with the W3C validator.
When you press Enter in a text editor to go to the next line, an invisible LINE FEED and/or CARRIAGE RETURN character is inserted.
Some HTML attributes cannot have any line breaks in their values, according to the specification,
That has nothing to do with HTML attributes or values. LF and CR are end of line characters. Wikipedia has an excellent article about them. What are you trying to accomplish and where are you getting this error?
In HTML, common commands will include an element, an attribute and a value. For example, in <A HREF ="somevalue"> A is the element, HREF is the attribute and somevalue is the value.
When you say values cannot have a carriage return or a line feed, then the value statement should not look like this:
<A HREF ="somevalue ENTER
somevalue continuing after a carriage return and line feed"></A>
Avoid that. Instead, that same information should be typed, letting the code wrap around on its own.