URI to compose gmail message with inner HTML - hyperlink

Ahoy. In this answer, there is a way how to open Compose window in gmail.
Is there a way how to specify inner HTML inside body that it will send this:
LINE1LINE2
and not just this:
LINE1<br><i><b>LINE2</b></i>
Thanks.
Update: Just to specify link in email's body is fine. That's what I basically wanted in the first place.

Related

Prevent automatic hyperlink in reStructuredText

reStructuredText automatically creates a hyperlink when it sees a URL like https://stackoverflow.com/
Is there a way to prevent this from happening? I just want the link to be in plain-text, no hyperlink.
I know this is easily done in HTML but I am looking for a reST solution.
With a backslash in front of the URL, it is rendered as plain text:
Go to \http://stackoverflow.com
This works with rst2html.py (from Docutils) and with Sphinx.

Is there a syntax for links with no text in Markdown?

I want to write
http://www.foo.com/
and get a link with the URL as the text (e.g., in HTML output). I do not want to write
[http://www.foo.com/](http://www.foo.com/)
Is it possible?
Yes, here is the relevant section of the documentation:
AUTOMATIC LINKS
Markdown supports a shortcut style for creating “automatic” links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this:
<http://example.com/>
Markdown will turn this into:
http://example.com/
I find this works with my IDE nicely, wrapping the link in an <a> tag:
<a>http://example.com/</a>

where does the href inside an <a> tag link direct me?

If I were to put
Replace this
where does this link go to? I am using eldarion-ajax and the examples all use this link location.
Does this link to replace.html?
the div with id #replace
It probably just goes to the url "replace". like if you're at www.website.com/index.html it would go to www.website.com/replace. It's probably just a placeholder indicating you should replace it with another value.
Web URLs do not need to end in .html or such.

Why is my external link rendered as internal link?

I have a form that let people enter various links on my website like: http, https and ftp. When someone enters "http:stackoverflow.com", "https:stackoverflow.com" and "ftp:stackoverflow.com" and renders these in a view like this:
<ul>
#foreach (var link in Model.Keyword.References)
{
<li>
#link.Link
</li>
}
</ul>
I get the following output:
http:stackoverflow.com
https:stackoverflow.com
ftp:stackoverflow.com
This looks fine but when I hover "http:stackoverflow.com" the real link is: "localhost:1973/stackoverflow.com".
When I hover the https and ftp links I get the correct output:
https://stackoverflow.com
ftp://stackoverflow.com
I found out that the http links requires two "forward slashes" when I submit them via a form. So instead of "http:" you get "http://". I would like to know why https and ftp links do not need these extra slashes. I would also like to know a good solution for this because I don't think I should force an user to use these extra slashes.
The slashes in the URL are always required. It could be that your browser does some correction to the invalid url. Try to put https:stackoverflow.com in the addressbar of your browser and it will try to correct it in most browsers.
As for a good solution, I think you should only accept the domain without http://. You can put some small text underneath the input that shows "Example: 'www.somedomain.com'", so that the user knows the protocol in the front is not needed.
You can then use JQUERY/REGEX to validate and trim off any protocol stuff someone might add mistakingly.

How to make a Rails 3 contact form send the contents of the form

I feel like an idiot here. Based on multiple tutorials I setup a basic contact form. The mail sends fine and all. But the contents of the email aren't there. The subject works fine.
Processing by PagesController#create_message as JS
Parameters: {"utf8"=>"✓", "authenticity_token"=>"ernukxaM9arPJwd8gmuxa/poc4FMh+s6ItsXAMW7BcE=", "message"=>{"name"=>"TJ", "email"=>"tj#tjsherrill.com", "body"=>"Test after file name change"}, "commit"=>""}
this is the console output.
My code: https://gist.github.com/anonymous/5924775
there is just no content in the email...
According to your gist you have the email view as contact_us_mailer.html.erb. It should be app/views/contact_us_mailer/new_message.html.erb

Resources